[Outreachy kernel] [PATCH 3/3] staging/rtl8712: use BIT macro

Matthew Wilcox willy at infradead.org
Tue Oct 20 18:44:04 UTC 2020


On Tue, Oct 20, 2020 at 11:24:39AM -0700, Elena Afanasova wrote:
> Reported by checkpatch.pl

Checkpatch is wrong.

> +++ b/drivers/staging/rtl8712/rtl871x_recv.h
> @@ -8,7 +8,7 @@
>  #define NR_RECVFRAME 256
>  
>  #define RXFRAME_ALIGN	8
> -#define RXFRAME_ALIGN_SZ	(1 << RXFRAME_ALIGN)
> +#define RXFRAME_ALIGN_SZ	BIT(RXFRAME_ALIGN)
>  
>  #define MAX_SUBFRAME_COUNT	64
>  
> -- 
> 2.25.1
> 
> -- 
> You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to outreachy-kernel+unsubscribe at googlegroups.com.
> To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20201020182439.43314-3-eafanasova%40gmail.com.


More information about the devel mailing list