Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752476AbdF0Hxh (ORCPT ); Tue, 27 Jun 2017 03:53:37 -0400 Received: from mail-pg0-f67.google.com ([74.125.83.67]:32872 "EHLO mail-pg0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751699AbdF0Hxa (ORCPT ); Tue, 27 Jun 2017 03:53:30 -0400 From: Jaya Durga To: gregkh@linuxfoundation.org Cc: Larry.Finger@lwfinger.net, florian.c.schilhabel@googlemail.com, robsonde@gmail.com, becher.jannik@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Jaya Durga , Jaya Durga Subject: [PATCH 4/4] Staging: rtl8712 : osdep_intf.h: fix macro coding style issue Date: Tue, 27 Jun 2017 13:18:42 +0530 Message-Id: <1498549722-11400-1-git-send-email-rjdurga@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 764 Lines: 26 Fix checkpatch.pl warning of the form "CHECK" Macro argument 'x' may be better as '(x)' to avoid precedence issues. Signed-off-by: Jaya Durga --- drivers/staging/rtl8712/osdep_intf.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h index 1985423..dac6aed 100644 --- a/drivers/staging/rtl8712/osdep_intf.h +++ b/drivers/staging/rtl8712/osdep_intf.h @@ -29,7 +29,10 @@ #include "osdep_service.h" #include "drv_types.h" -#define RND4(x) ((((x) >> 2) + ((((x) & 3) == 0) ? 0 : 1)) << 2) +static inline unsigned int RND4(unsigned int x) +{ + return (((x >> 2) + (((x & 3) == 0) ? 0 : 1)) << 2); +} struct intf_priv { u8 *intf_dev; -- 1.9.1