[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <d3307a75-fcc0-4a94-8a05-05b871f4fa9f@kili.mountain>
Date: Tue, 21 Mar 2023 16:36:54 +0300
From: Dan Carpenter <error27@...il.com>
To: Inshal Khan <kziaul123@...il.com>
Cc: gregkh@...uxfoundation.org, linux-staging@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 4/4] Staging: rtl8712: osdep_intf: Improve RND4 macro for
better debugging and safety
On Tue, Mar 21, 2023 at 05:11:41PM +0530, Inshal Khan wrote:
> drivers/staging/rtl8712/osdep_intf.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h
> index 95a21f380cd7..0e097b4a8670 100644
> --- a/drivers/staging/rtl8712/osdep_intf.h
> +++ b/drivers/staging/rtl8712/osdep_intf.h
> @@ -18,8 +18,8 @@
> #include "drv_types.h"
>
> #define RND4(x) ({ \
> - typeof(x) _x = (x); \
> - (((_x) + 3) & ~3); \
> + typeof(x) _x = (x); \
> + (((_x) + 3) & ~3); \
Just use normal kernel rounding macros and delete RND4().
regards,
dan carpenter
Powered by blists - more mailing lists