Received: by 2002:a5b:505:0:0:0:0:0 with SMTP id o5csp2362515ybp; Thu, 10 Oct 2019 06:23:55 -0700 (PDT) X-Google-Smtp-Source: APXvYqzU6gp6EgBnozotTMyHCNT5kpqePDrybdDXqL0Do3lqT3JuU4GNkbdiT+mWQFtQhoF/dat0 X-Received: by 2002:a05:6402:21e8:: with SMTP id ce8mr8188903edb.32.1570713835393; Thu, 10 Oct 2019 06:23:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570713835; cv=none; d=google.com; s=arc-20160816; b=tWgrB8/f4pBaKJ1tFGijG0Ks5QvaOr987JwuOymu3ONiML9l9BOEMghakkc+SRhu5p JYtOmR4Sf45uXkcfUpaId343IqmsT0mePSpREIfecpiHqJZB7G49R125ZtpfE78AQBn9 RiUEFZthl7MbCK331WAGk9hrjrYZpYvoessAKKn2Bn2ykxLNcORYry+wbd7+TEzDAA6F 9IcbrxmrOx1z7/Gd/eU1M48xIdm82tgyyb3UtZJGw7UXMPlw0icTUjvrL3bRxRyBwYis f3HpMIcxEU+7hPhq7338722GomPK59JKOISU0ouiv87s/RVdYSavK8UUk5zX1PI9OXVo Ce1Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=sNkcoz2qQQJzkBN7TPFJIs9Ujhr7nKC1loZQV/g1Ccw=; b=PMvStJzQDAChbPDplhKhptfbQiLqptAXNDbXyPmcOsIxVe8BHjulxMY0Hv9xnRNs5t bsSbTMz1zy9KoXlR5ehhMlVfZxVqPKgpd8E9lXb8xmSLYIJUWBxqUuU6gJGypBmm6Pb9 aeLuGCDVgYbxd4MnioQdUJzzIkymWWpT+UknwAwOlT/PjDI7w/weydgOp8BP9zELRNJK +IYq+dW0i3eGS1NbowusHlT9rSafv5sDNMrCGJ1Xm0TEWYR5EUtGWr8EzLyc3exc89L+ RS8fbJ2ABKQGqPwSSlm8C62jo3n96nIq3JA8nLviKxPVDxTo13SdQGO1VH6H8DFTuB51 Mc1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TThZtPzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q8si3034779ejx.315.2019.10.10.06.23.30; Thu, 10 Oct 2019 06:23:55 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=TThZtPzW; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2387988AbfJJNVT (ORCPT + 99 others); Thu, 10 Oct 2019 09:21:19 -0400 Received: from mail-pg1-f196.google.com ([209.85.215.196]:39536 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2387669AbfJJNVT (ORCPT ); Thu, 10 Oct 2019 09:21:19 -0400 Received: by mail-pg1-f196.google.com with SMTP id e1so3667426pgj.6 for ; Thu, 10 Oct 2019 06:21:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sNkcoz2qQQJzkBN7TPFJIs9Ujhr7nKC1loZQV/g1Ccw=; b=TThZtPzWNwtue6y9ZvOvLq6kR6ynBi2BIcoQKTknfEa20G6yABruMP0e6OSvYmKL1R xy0qmWhh+Dmj0wdywBiBYLDq5/efZroBtm0ys74wBJ363qjZH0aw/8QmT/GqT2lFbcKV xJl81Bb/6SqayixA/EZLwSqDCWirabUa8la2y3XTHjMI2l5KxKQ5FD9eNfwc/srsgnEA eOe8yAUdtzhVwqk+kSss+GeHaoy3FEx/gNw3paIOBUl4GsBPvxuWyEA4DwIMfOS4lbad y0APRmiuziMLmxPC/2afgJiUOqMLawyGSptp0hQerIjkLpff9qUJf9dsj+WDBxzOq23G YN9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=sNkcoz2qQQJzkBN7TPFJIs9Ujhr7nKC1loZQV/g1Ccw=; b=NXmUxoguY6vExY9Fcyjj26EPhGHm+MIb0lPSTaNJW3T6t8ObDvQOf6xxQqHTgny/+L 0gT+ZXKY6F1d2fHiPxnrNmTBMYLbjjVRfMawVjrhpbwdN3l1RYnhm9rL/gs9nY+TjtT9 hEWeH6AvL6ROO/04IIMq+pSmue1nY0Pm08yx8w/8OXL+NvEMEWdAnQeFWrhGeIOS/5zf HeCXT6BRuB0M1LVLsXkQZh0afFirN0+rrhBb7Jwsu7UM3i+Igp53BIUeiod95a1AEqtz aBuH6FhdpJQD80lsy95PLU2PdGOhiaMsvgI3AWFrKPoB73D0d62pXzBjNJLnPpn0s9Ev ViiQ== X-Gm-Message-State: APjAAAXpEYn5mw67ej8wKB2co/JMIQx6yTQnzO0/vn8WbW2lhfp2vC0d h8f/I+Zf3nFUgqVTojNkYKw= X-Received: by 2002:a63:215c:: with SMTP id s28mr9934229pgm.302.1570713678298; Thu, 10 Oct 2019 06:21:18 -0700 (PDT) Received: from wambui.brck.local ([197.254.95.158]) by smtp.googlemail.com with ESMTPSA id w189sm6619667pfw.101.2019.10.10.06.21.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 10 Oct 2019 06:21:17 -0700 (PDT) From: Wambui Karuga To: outreachy-kernel@googlegroups.com Cc: gregkh@linuxfoundation.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Wambui Karuga Subject: [PATCH] rtl8723bs: Remove comparison to NULL Date: Thu, 10 Oct 2019 16:20:58 +0300 Message-Id: <20191010132058.20887-1-wambui.karugax@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Remove comparison to NULL in drivers/staging/rtl8723bs/core/rtw_ap.c:1449. Issue found by checkpatch.pl Signed-off-by: Wambui Karuga --- drivers/staging/rtl8723bs/core/rtw_ap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/rtl8723bs/core/rtw_ap.c b/drivers/staging/rtl8723bs/core/rtw_ap.c index 80027ac765d0..7117d16a30f9 100644 --- a/drivers/staging/rtl8723bs/core/rtw_ap.c +++ b/drivers/staging/rtl8723bs/core/rtw_ap.c @@ -1447,7 +1447,7 @@ u8 rtw_ap_set_pairwise_key(struct adapter *padapter, struct sta_info *psta) u8 res = _SUCCESS; ph2c = rtw_zmalloc(sizeof(struct cmd_obj)); - if (ph2c == NULL) { + if (!ph2c) { res = _FAIL; goto exit; } -- 2.23.0