From patchwork Mon Jul 3 18:40:30 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9823809 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 D2523604D9 for ; Mon, 3 Jul 2017 18:40:53 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id C72692856D for ; Mon, 3 Jul 2017 18:40:53 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id BBAA5285EF; Mon, 3 Jul 2017 18:40:53 +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=-6.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, T_DKIM_INVALID 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 59ACF285F2 for ; Mon, 3 Jul 2017 18:40:53 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754199AbdGCSkw (ORCPT ); Mon, 3 Jul 2017 14:40:52 -0400 Received: from mail-oi0-f66.google.com ([209.85.218.66]:32904 "EHLO mail-oi0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753914AbdGCSks (ORCPT ); Mon, 3 Jul 2017 14:40:48 -0400 Received: by mail-oi0-f66.google.com with SMTP id f134so12888033oig.0 for ; Mon, 03 Jul 2017 11:40:47 -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=zvqIzu6xNqTJy37RlPaN3FHSUl5O0N4wOuUn7ApGDEg=; b=e8PxEtprnKeXLGVo3730W0AiT37BA3GC4ud2G/LtE5Sju1/VffcR2+ILYA41TdOgRs f9ZnWeV/myc7t3G/O1YGxurj25Mw2Pgb/JV20UXggJ/T7kJ+yDFYqg6Yka3hqdOPFvTL bveBHg7c7YnUndPXr/EYyY/ZQjWwP1/kWr6e31E9sPH0WnjeCIbG6YjRGpUlYI2DYGHq Tz98wKRtW8rO0MT0eyMW+FXikN6i90TiQpuDXMUJjsDxf4CuJKiR6UbQ+oVdGimpuQO6 +aieukRaNhiXJew6MtkCu6ii2JpBePPIqRPsElWkFkCwrKRz/bYHEmyEp/fxy9b7GWzn vQAQ== 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=zvqIzu6xNqTJy37RlPaN3FHSUl5O0N4wOuUn7ApGDEg=; b=TV9GP6t+0QkucHRSHfCph5XR9EnXPXFHZaqb0QdJmFRj37M52wUX1nXU4p/CR40d+j DNIy/9jw7a7u0sdqKvZPb2MC6ZO0Uh6/KpiHnWsBgYiLUQoEDajgGtJsuTGZQFSIsKuJ S5andopf1yJ9Du+qaU1ddVUCkLCzDOmhwBEMhiZm/6Bbx3f8P325DqqClBFuAdx85EQB v7szfmyAONeZQx3FlxvPm6eKU1wuBKbBDl9B/iHYHcFbc9lwVEOp2egjWQEh/C8dhS1d dzUhOehK451Zd1CYbrETK82n0gwL3Qy1YhcVy6KJToflyA/AVKKbP/LKfhI6PAyPPEnB FsQg== X-Gm-Message-State: AKS2vOz1atmnSrnls+bLPl9JaMvD15moLKzVH3enIkSGBmBa0nWAgPSd BDH3hvzf28KiAw== X-Received: by 10.202.222.212 with SMTP id v203mr18951862oig.88.1499107247388; Mon, 03 Jul 2017 11:40:47 -0700 (PDT) Received: from linux-4v1g.suse (cpe-24-31-249-175.kc.res.rr.com. [24.31.249.175]) by smtp.gmail.com with ESMTPSA id o2sm14641309oik.16.2017.07.03.11.40.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 03 Jul 2017 11:40:46 -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 03/11] rtlwifi: Remove redundant semicolon in wifi.h. Date: Mon, 3 Jul 2017 13:40:30 -0500 Message-Id: <20170703184038.24669-4-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170703184038.24669-1-Larry.Finger@lwfinger.net> References: <20170703184038.24669-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 6c3ff4a73d19..cdf3944715ee 100644 --- a/drivers/net/wireless/realtek/rtlwifi/wifi.h +++ b/drivers/net/wireless/realtek/rtlwifi/wifi.h @@ -2867,19 +2867,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))