[PATCH 6/9] staging: csr: Fix assignment error in if statement

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

 



Fixed the assignment error generated by checkpatch.pl to
meet kernel coding standards in sme_userspace.c

Signed-off-by: Lisa Nguyen <lisa@xxxxxxxxxxxxxxx>
---
 drivers/staging/csr/sme_userspace.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/staging/csr/sme_userspace.c b/drivers/staging/csr/sme_userspace.c
index cca49f0..8106779 100644
--- a/drivers/staging/csr/sme_userspace.c
+++ b/drivers/staging/csr/sme_userspace.c
@@ -163,7 +163,8 @@ uf_sme_deinit(unifi_priv_t *priv)
 
 	    if (interfacePriv) {
 		    for (j = 0; j < UNIFI_MAX_CONNECTIONS; j++) {
-			    if ((staInfo = interfacePriv->staInfo[j]) != NULL) {
+			    staInfo = interfacePriv->staInfo[j];
+			    if (staInfo != NULL) {
 				    /* Clear the STA activity parameters before freeing station Record */
 				    unifi_trace(priv, UDBG1, "uf_sme_deinit: Canceling work queue for STA with AID: %d\n", staInfo->aid);
 				    cancel_work_sync(&staInfo->send_disconnected_ind_task);
-- 
1.8.1.2

_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/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