From patchwork Fri Sep 29 19:47:52 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9978587 X-Patchwork-Delegate: kvalo@adurom.com Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 3019660329 for ; Fri, 29 Sep 2017 19:48:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 2284A298AD for ; Fri, 29 Sep 2017 19:48:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 12CD3298AE; Fri, 29 Sep 2017 19:48:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.6 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID, URIBL_BLACK autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B33F0298B2 for ; Fri, 29 Sep 2017 19:48:18 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752548AbdI2TsO (ORCPT ); Fri, 29 Sep 2017 15:48:14 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:34668 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752472AbdI2TsJ (ORCPT ); Fri, 29 Sep 2017 15:48:09 -0400 Received: by mail-oi0-f66.google.com with SMTP id l81so292690oib.1 for ; Fri, 29 Sep 2017 12:48:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=0z8lcisF9w0Ivs/kV2XZyuh49gw7njFjuNYXAKvLPdc=; b=Vnqg1X7LycRkZhXLGTD0/9N1/N7wFNabBZO80NTeTTHVelwJax03+A+uQEzddT04kP flSrOrb+el24Vly0iWxew9rlJswjJYfAViru3z17MfHJNYuDoPvXVeRinW++f1Hze07s jNS2YMU++wyYkHdcJf3sWtG24uqeOKmX28VUN7bn/e0xv1hxfTuGaLZPx+ZpsrmpJVna Vf7C05fdzs8etx7jHOOk561m3xVV6p0mhdbJ7Pdd2Q59mriMB+dnoAThC67mEBeafqe6 nxw9NVigtknGDMR+2xy35BhFCM/wiZcfNq0E6k98mzClmzMgceeXouuf9Z/U/5pfMHGn Ww8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=0z8lcisF9w0Ivs/kV2XZyuh49gw7njFjuNYXAKvLPdc=; b=bs9CFRGjuGc60UlCbmd1pev9g2tyFgdVlFKbu6nhH8RNkLX4t80/w7gbEfEhK41HEi Jw7vpeKWwM77j6r5ksgXKkhMUcf9QHqyT4yR043eIRTknRn68Q97NMGeCR/hV4OA+gIM 5qNnA5r9tI4vsgUdLBjIU+9pHqMGE/ozA22IY+g2nT5Mb1SkoKOg2oSoAtUAk20BAqRA 6BnQcgREDy5P3rnNOkCnLTGf2+GIURiCk8KJH/EyW/asSYAYBuSg5iXibPWWOrU7RkMB +YZJC969RPTgvaijsBQRcfhLWNbNLXFm6C/gC5BEE7oXDkPJSUlQO8jQDKu7duezqcyG 6uOg== X-Gm-Message-State: AMCzsaXBkvWcBCdDz5J7iVi4evuITRvCULeA2QCQuYXCnEmsXJJ3kM3i 7KaO/oL9Hzs1+28UbwBn1gE= X-Google-Smtp-Source: AOwi7QBjWEQPUdE46eyWsG/ZiUpPCyW4qglWP6Wjhqgu2wM+y4NHriiXJ8q3+GmX84xFWMEAZzkL4g== X-Received: by 10.157.60.129 with SMTP id z1mr3341055otc.100.1506714489278; Fri, 29 Sep 2017 12:48:09 -0700 (PDT) Received: from Larrylap.localdomain (cpe-24-31-251-255.kc.res.rr.com. [24.31.251.255]) by smtp.gmail.com with ESMTPSA id v14sm2311062oif.39.2017.09.29.12.48.08 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 29 Sep 2017 12:48:08 -0700 (PDT) From: Larry Finger To: kvalo@codeaurora.org Cc: linux-wireless@vger.kernel.org, Ping-Ke Shih , Larry Finger , Yan-Hsuan Chuang , Birming Chiu , Shaofu , Steven Ting Subject: [PATCH 02/10] rtlwifi: Remove redundant semicolon in wifi.h. Date: Fri, 29 Sep 2017 14:47:52 -0500 Message-Id: <20170929194800.15617-3-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.14.1 In-Reply-To: <20170929194800.15617-1-Larry.Finger@lwfinger.net> References: <20170929194800.15617-1-Larry.Finger@lwfinger.net> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Ping-Ke Shih The semicolon can cause compiler error, if it exists in if...else statement. Signed-off-by: Ping-Ke Shih Signed-off-by: Larry Finger Cc: Yan-Hsuan Chuang Cc: Birming Chiu Cc: Shaofu Cc: Steven Ting --- drivers/net/wireless/realtek/rtlwifi/wifi.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/wireless/realtek/rtlwifi/wifi.h b/drivers/net/wireless/realtek/rtlwifi/wifi.h index 1ab1024330fb..90e875beff66 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2857,19 +2857,19 @@ value to host byte ordering.*/ cpu_to_le32( \ LE_BITS_CLEARED_TO_4BYTE(__pstart, __bitoffset, __bitlen) | \ ((((u32)__val) & BIT_LEN_MASK_32(__bitlen)) << (__bitoffset)) \ - ); + ) #define SET_BITS_TO_LE_2BYTE(__pstart, __bitoffset, __bitlen, __val) \ *((__le16 *)(__pstart)) = \ cpu_to_le16( \ LE_BITS_CLEARED_TO_2BYTE(__pstart, __bitoffset, __bitlen) | \ ((((u16)__val) & BIT_LEN_MASK_16(__bitlen)) << (__bitoffset)) \ - ); + ) #define SET_BITS_TO_LE_1BYTE(__pstart, __bitoffset, __bitlen, __val) \ *((u8 *)(__pstart)) = EF1BYTE \ ( \ LE_BITS_CLEARED_TO_1BYTE(__pstart, __bitoffset, __bitlen) | \ ((((u8)__val) & BIT_LEN_MASK_8(__bitlen)) << (__bitoffset)) \ - ); + ) #define N_BYTE_ALIGMENT(__value, __aligment) ((__aligment == 1) ? \ (__value) : (((__value + __aligment - 1) / __aligment) * __aligment))