All of lore.kernel.org
 help / color / mirror / Atom feed
* [3/4] Staging: rtl8723bs: Change condition to assignment
@ 2017-12-13 11:56 Shreeya Patel
  0 siblings, 0 replies; only message in thread
From: Shreeya Patel @ 2017-12-13 11:56 UTC (permalink / raw)
  To: julia.lawall; +Cc: Shreeya Patel, linux-usb

Change the conditional operator to assignment as it is
not a conditional statement.

Signed-off-by: Shreeya Patel <shreeya.patel23498@gmail.com>
---
 drivers/staging/rtl8723bs/hal/sdio_ops.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/rtl8723bs/hal/sdio_ops.c b/drivers/staging/rtl8723bs/hal/sdio_ops.c
index e72f80f..67c4cca 100644
--- a/drivers/staging/rtl8723bs/hal/sdio_ops.c
+++ b/drivers/staging/rtl8723bs/hal/sdio_ops.c
@@ -460,7 +460,7 @@ static u32 sdio_read_port(
 		if (mem == NULL) {
 			DBG_8192C(KERN_WARNING "%s: allocate memory %d bytes fail!\n", __func__, cnt);
 			mem = oldmem;
-			oldmem == NULL;
+			oldmem = NULL;
 		}
 #else
 		/*  in this case, caller should gurante the buffer is big enough */

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2017-12-13 11:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-12-13 11:56 [3/4] Staging: rtl8723bs: Change condition to assignment Shreeya Patel

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.