Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751865AbeAPTDc (ORCPT + 1 other); Tue, 16 Jan 2018 14:03:32 -0500 Received: from mail-pf0-f195.google.com ([209.85.192.195]:37372 "EHLO mail-pf0-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751496AbeAPTDa (ORCPT ); Tue, 16 Jan 2018 14:03:30 -0500 X-Google-Smtp-Source: ACJfBotJWwWu5pnnVlVBPV/1LlcFhTQ2kFQRos7SkcBo5B8Rs3Fj6Fa31/nBWh5UOxr5bWCieMiMmg== From: Shreeya Patel To: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Cc: Shreeya Patel , linux-usb@vger.kernel.org Subject: [PATCH v2 3/4] Staging: rtl8723bs: Change condition to assignment Date: Wed, 17 Jan 2018 00:33:23 +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 Return-Path: Change the conditional operator to assignment as it is not a conditional statement. Signed-off-by: Shreeya Patel --- Changes in v2 -Rebase and resend. 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