Re: [PATCH] drivers: staging: rtl8723au: Fix return is not a function, parentheses are not required error

From: Jes Sorensen
Date: Wed Sep 03 2014 - 08:22:08 EST


Greg Donald <gdonald@xxxxxxxxx> writes:
> Fix checkpatch.pl return is not a function, parentheses are not required error
>
> Signed-off-by: Greg Donald <gdonald@xxxxxxxxx>
> ---
> drivers/staging/rtl8723au/include/osdep_service.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)

Yes please!

Acked-by: Jes Sorensen <Jes.Sorensen@xxxxxxxxxx>

>
> diff --git a/drivers/staging/rtl8723au/include/osdep_service.h
> b/drivers/staging/rtl8723au/include/osdep_service.h
> index 51a5d7b..dedb418 100644
> --- a/drivers/staging/rtl8723au/include/osdep_service.h
> +++ b/drivers/staging/rtl8723au/include/osdep_service.h
> @@ -54,7 +54,7 @@ struct rtw_queue {
>
> static inline struct list_head *get_list_head(struct rtw_queue *queue)
> {
> - return (&queue->queue);
> + return &queue->queue;
> }
>
> static inline int rtw_netif_queue_stopped(struct net_device *pnetdev)
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/