[PATCH 2/5] staging: ks7010: fix checkpatch MULTILINE_DEREFERENCE

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Checkpatch emits WARNING: Avoid multiple line dereference.

Move dereference onto single line.

Signed-off-by: Tobin C. Harding <me@xxxxxxxx>
---
 drivers/staging/ks7010/ks7010_sdio.c | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)

diff --git a/drivers/staging/ks7010/ks7010_sdio.c b/drivers/staging/ks7010/ks7010_sdio.c
index 1cf8b12..4ce5867 100644
--- a/drivers/staging/ks7010/ks7010_sdio.c
+++ b/drivers/staging/ks7010/ks7010_sdio.c
@@ -227,8 +227,7 @@ static int _ks_wlan_hw_power_save(struct ks_wlan_private *priv)
 				DPRINTK(4,
 					"PMG SET!! : GCR_B=%02X\n",
 					rw_data);
-				atomic_set(&priv->psstatus.
-					status, PS_SNOOZE);
+				atomic_set(&priv->psstatus.status, PS_SNOOZE);
 				DPRINTK(3,
 					"psstatus.status=PS_SNOOZE\n");
 			} else {
@@ -236,8 +235,7 @@ static int _ks_wlan_hw_power_save(struct ks_wlan_private *priv)
 						&priv->ks_wlan_hw.rw_wq, 1);
 			}
 		} else {
-			queue_delayed_work(priv->ks_wlan_hw.
-					ks7010sdio_wq,
+			queue_delayed_work(priv->ks_wlan_hw.ks7010sdio_wq,
 					&priv->ks_wlan_hw.rw_wq,
 					0);
 		}
-- 
2.7.4

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux