[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20170628124522.v4p2ksnexzad2krh@mwanda>
Date: Wed, 28 Jun 2017 15:45:22 +0300
From: Dan Carpenter <dan.carpenter@...cle.com>
To: Jaya Durga <rjdurga@...il.com>
Cc: gregkh@...uxfoundation.org, devel@...verdev.osuosl.org,
florian.c.schilhabel@...glemail.com, Jaya Durga <jayad@...c.in>,
driverdev-devel@...uxdriverproject.org,
linux-kernel@...r.kernel.org, Larry.Finger@...inger.net
Subject: Re: [PATCH 4/4] Staging: rtl8712 : ieee80211.c: fixed camelcase
coding
On Tue, Jun 27, 2017 at 05:13:39PM +0530, Jaya Durga wrote:
> 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);
> +}
>
Don't mix unrelated stuff.
regards,
dan carpenter
Powered by blists - more mailing lists