Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752569AbdLQJku (ORCPT ); Sun, 17 Dec 2017 04:40:50 -0500 Received: from mail-pl0-f65.google.com ([209.85.160.65]:41634 "EHLO mail-pl0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751005AbdLQJkr (ORCPT ); Sun, 17 Dec 2017 04:40:47 -0500 X-Google-Smtp-Source: ACJfBousVzs3oTfHPpPv+IGhAl8opnAUdUHlGNwMjEzSQ1zjgVuBzqFvq+bcL8JiBFOSiWXOOBUJCA== From: Shreeya Patel To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Shreeya Patel Subject: [PATCH 3/4] Staging: rtl8723bs: Change condition to assignment Date: Sun, 17 Dec 2017 15:10:43 +0530 Message-Id: X-Mailer: git-send-email 2.7.4 In-Reply-To: References: Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 769 Lines: 23 Change the conditional operator to assignment as it is not a conditional statement. Signed-off-by: Shreeya Patel --- 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 00b20c0..314b31f 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 */ -- 2.7.4