From patchwork Mon Jul 17 15:09:46 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Larry Finger X-Patchwork-Id: 9845431 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 9787C60386 for ; Mon, 17 Jul 2017 15:10:20 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 8AC4D27CF9 for ; Mon, 17 Jul 2017 15:10:20 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 7FA7028405; Mon, 17 Jul 2017 15:10:20 +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 344A627CF9 for ; Mon, 17 Jul 2017 15:10:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751372AbdGQPKN (ORCPT ); Mon, 17 Jul 2017 11:10:13 -0400 Received: from mail-oi0-f65.google.com ([209.85.218.65]:36200 "EHLO mail-oi0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751342AbdGQPKG (ORCPT ); Mon, 17 Jul 2017 11:10:06 -0400 Received: by mail-oi0-f65.google.com with SMTP id n2so18150513oig.3 for ; Mon, 17 Jul 2017 08:10:05 -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=e0vXtvlyrmCVXb5SBi1RgTDra9sCKNNJWFawpFgGN4E=; b=JAwqynfeESjjaUiCtdhKHQoYFROpHkkexjnW/xhPeix9jfr+3KJaxabwTBPYFAAgO1 5XQ5pIIOquJbfsTsCywG5r+uHVx5bEV9+Hh/NuyXTbrkQjamrk5Bhiq8C2hSsM2yZWJi eIpLZIJxtT7ig1OKVpzBhxVOBmNHZwQOrZq5u8jnZTtQczW9B7Qj5/LUCkG8V/VNfeAE 7BzdgCikuW4EOLC29+xF9Ii9uVLzy0MFxK6cV58nu5iltGPliJAiZSStPai3U4NanLEL MTun8wRSVl74Xq98Z0gYWJa+eTgKtYKNbWin1DJv2/+s43FlOxZO6w9fydT0jRKxeCdo 5ilQ== 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=e0vXtvlyrmCVXb5SBi1RgTDra9sCKNNJWFawpFgGN4E=; b=DsKJ6ji840FCIsvZzyNrOrKvWWXOFSOp7HYbLEuelnk3qtPz5nC0hcDufZAg86LbiD sKAWhMCsnWzc9dG8OFJtIovd8Om6ImJnIW44Itb4iJnBzgkH8fWjs+VvE3AAnMferW72 EBOE67QswrsSw9mDt1BBk9C/njJ9EoGpl5o/uERCLVOqFQ6946626uzGqvvV5US8hQEd thhdBaBsiWQS8k1mU5z0/jN5olJwZf2X458E5GdZ1dV1AoJ3zQIo5159kj/GjAMO/LWn 4gYBErcjJytuTB2Pp3gEvlWsRqsQ70LlO6rVOSsu34VoKfqyNbXVd41JBXcQ+QSFUSmI v3TA== X-Gm-Message-State: AIVw112yOfi0oLvQLkKduvn3HU7gxlbzAR6HaB21syxgPibU31rao2Mr IZv1k7mnXWI8xw== X-Received: by 10.202.197.11 with SMTP id v11mr11662598oif.1.1500304205354; Mon, 17 Jul 2017 08:10:05 -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 p65sm29370656oie.8.2017.07.17.08.10.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 17 Jul 2017 08:10:04 -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 v2 03/11] rtlwifi: Remove redundant semicolon in wifi.h. Date: Mon, 17 Jul 2017 10:09:46 -0500 Message-Id: <20170717150954.1441-4-Larry.Finger@lwfinger.net> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20170717150954.1441-1-Larry.Finger@lwfinger.net> References: <20170717150954.1441-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 --- v2 - no changes --- 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))