[PATCH] Staging: rtl8712: osdep_intf: Remove RND4 macro.

Inshal Khan posted 1 patch 2 years, 10 months ago
drivers/staging/rtl8712/osdep_intf.h | 5 -----
1 file changed, 5 deletions(-)
[PATCH] Staging: rtl8712: osdep_intf: Remove RND4 macro.
Posted by Inshal Khan 2 years, 10 months ago
The RND4 macro was found to be not used anywhere in the project.
Therefore, it has been removed from rtl8712/osdep_intf.h to
simplify the code and reduce unnecessary overhead. In case the
need for rounding macros arises in the future, kernel rounding
macros will be used instead.

Signed-off-by: Inshal Khan <kziaul123@gmail.com>
---
 drivers/staging/rtl8712/osdep_intf.h | 5 -----
 1 file changed, 5 deletions(-)

diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h
index 0e097b4a8670..446ee09159fc 100644
--- a/drivers/staging/rtl8712/osdep_intf.h
+++ b/drivers/staging/rtl8712/osdep_intf.h
@@ -17,11 +17,6 @@
 #include "osdep_service.h"
 #include "drv_types.h"
 
-#define RND4(x)	({ \
-			typeof(x) _x = (x); \
-			(((_x) + 3) & ~3); \
-		})
-
 struct intf_priv {
 	u8 *intf_dev;
 	/* when in USB, IO is through interrupt in/out endpoints */
-- 
2.34.1
Re: [PATCH] Staging: rtl8712: osdep_intf: Remove RND4 macro.
Posted by Greg KH 2 years, 10 months ago
On Wed, Mar 22, 2023 at 10:47:03AM +0530, Inshal Khan wrote:
> The RND4 macro was found to be not used anywhere in the project.
> Therefore, it has been removed from rtl8712/osdep_intf.h to
> simplify the code and reduce unnecessary overhead. In case the
> need for rounding macros arises in the future, kernel rounding
> macros will be used instead.
> 
> Signed-off-by: Inshal Khan <kziaul123@gmail.com>
> ---
>  drivers/staging/rtl8712/osdep_intf.h | 5 -----
>  1 file changed, 5 deletions(-)
> 
> diff --git a/drivers/staging/rtl8712/osdep_intf.h b/drivers/staging/rtl8712/osdep_intf.h
> index 0e097b4a8670..446ee09159fc 100644
> --- a/drivers/staging/rtl8712/osdep_intf.h
> +++ b/drivers/staging/rtl8712/osdep_intf.h
> @@ -17,11 +17,6 @@
>  #include "osdep_service.h"
>  #include "drv_types.h"
>  
> -#define RND4(x)	({ \
> -			typeof(x) _x = (x); \
> -			(((_x) + 3) & ~3); \
> -		})
> -
>  struct intf_priv {
>  	u8 *intf_dev;
>  	/* when in USB, IO is through interrupt in/out endpoints */
> -- 
> 2.34.1
> 
> 

This commit does not apply to my tree at all :(