From patchwork Fri Jul 21 09:37:59 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: hanyu001@208suo.com X-Patchwork-Id: 705236 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 02947EB64DC for ; Fri, 21 Jul 2023 09:38:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229628AbjGUJiG (ORCPT ); Fri, 21 Jul 2023 05:38:06 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52068 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229476AbjGUJiE (ORCPT ); Fri, 21 Jul 2023 05:38:04 -0400 Received: from mail.208.org (unknown [183.242.55.162]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 30E05AA for ; Fri, 21 Jul 2023 02:38:03 -0700 (PDT) Received: from mail.208.org (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTP id 4R6kxg6dSPzBKy88 for ; Fri, 21 Jul 2023 17:37:59 +0800 (CST) Authentication-Results: mail.208.org (amavisd-new); dkim=pass reason="pass (just generated, assumed good)" header.d=208.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=208.org; h= content-transfer-encoding:content-type:message-id:user-agent :references:in-reply-to:subject:to:from:date:mime-version; s= dkim; t=1689932279; x=1692524280; bh=s6hrHq+4i66w2AiBgRCGMJw/RnQ ClA/Vxds/eXz/JfQ=; b=EK4nNgoRUS9mUW6LQ/ze1Q/ITykCUHM2iLZOqFxrsXh 29x0uieOSUDXifqD3HjIdMPUuzcsqypkQpw/TxKwwObSJAcWn9NHA8A19Htm7NQg AeeoW5nt2GO4ZVbI69UgEp8lWa4JOHpYi6fDRHlWFDws8Aqkgx/V+XAG5fA0hZAH njRa0ubSNmLoaMtbfU2Nma68HVMMg0HAvWrvOTQHaFxD4W7ivVqhTif5ZYuIyjF+ CBygfOgFNnGJLoekCHCifIW84IBFBwdwh04mtzv28OFl0TrQe48hiwluhiuX4xgC dA/N3sCgm6x9Pw0Ih3WbZqvul6bw7gO95rbmcJ8HPXw== X-Virus-Scanned: amavisd-new at mail.208.org Received: from mail.208.org ([127.0.0.1]) by mail.208.org (mail.208.org [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id r2M3qfKQh-ud for ; Fri, 21 Jul 2023 17:37:59 +0800 (CST) Received: from localhost (email.208.org [127.0.0.1]) by mail.208.org (Postfix) with ESMTPSA id 4R6kxg4nDnzBHXgs; Fri, 21 Jul 2023 17:37:59 +0800 (CST) MIME-Version: 1.0 Date: Fri, 21 Jul 2023 17:37:59 +0800 From: hanyu001@208suo.com To: stf_xl@wp.pl, helmut.schaa@googlemail.com, kvalo@kernel.org Cc: linux-wireless@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] wireless: ralink: rt2x00: Remove unnecessary spaces In-Reply-To: References: User-Agent: Roundcube Webmail Message-ID: X-Sender: hanyu001@208suo.com Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Fix checkpatch warnings: ./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:168: ERROR: space prohibited after that open parenthesis '(' ./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:168: ERROR: space prohibited before that close parenthesis ')' ./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:169: ERROR: space prohibited after that open parenthesis '(' ./drivers/net/wireless/ralink/rt2x00/rt2x00reg.h:169: ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Yu Han --- drivers/net/wireless/ralink/rt2x00/rt2x00reg.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) /* diff --git a/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h b/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h index ffe802b..0e5094a 100644 --- a/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h +++ b/drivers/net/wireless/ralink/rt2x00/rt2x00reg.h @@ -165,8 +165,8 @@ struct rt2x00_field32 { * Note that we cannot use the is_power_of_2() function since this * check must be done at compile-time. */ -#define is_power_of_two(x) ( !((x) & ((x)-1)) ) -#define low_bit_mask(x) ( ((x)-1) & ~(x) ) +#define is_power_of_two(x) (!((x) & ((x)-1))) +#define low_bit_mask(x) (((x)-1) & ~(x)) #define is_valid_mask(x) is_power_of_two(1LU + (x) + low_bit_mask(x))