Skip to contentSkip to conversation

drivers: staging: rtl8723au: Fix return is not a function, parentheses are not required error

PATCH In review Greg Donald 2 participants 2 messages Sep 1, 2014 – Sep 3, 2014 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drivers: staging: rtl8723au: Fix return is not a function, parentheses are not required error

Fix checkpatch.pl return is not a function, parentheses are not required error

---
 drivers/staging/rtl8723au/include/osdep_service.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723au/include/osdep_service.h +1 -1
index 51a5d7b..dedb418 100644
@@ -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)
Signature · 1 line
1.9.1
Acked-by on v1 1/1
#1 lore raw
Quoted 6 lines · Greg Donald

Fix checkpatch.pl return is not a function, parentheses are not required error

---
 drivers/staging/rtl8723au/include/osdep_service.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Yes please!

Quoted 15 lines
drivers/staging/rtl8723au/include/osdep_service.h +1 -1
index 51a5d7b..dedb418 100644
@@ -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)