Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp26480imm; Thu, 20 Sep 2018 14:29:02 -0700 (PDT) X-Google-Smtp-Source: ANB0Vda1Quc7VoGBcA46jDtyq9D8RdFAMHrOv12m3uT5egtrbZv0x8pGy/zvHzzf5HJTZsLGlYt3 X-Received: by 2002:a17:902:c85:: with SMTP id 5-v6mr41330594plt.141.1537478941986; Thu, 20 Sep 2018 14:29:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537478941; cv=none; d=google.com; s=arc-20160816; b=JbvUvwpdjDCjC9uy0DWugn/wEV8SXlXDNYx/9Ra1Kk250UthQnGQ7YNW0AW1N7yUS6 2YqUb1vdB0fZIozD6OAOD2WelPTxU3P8pHDRBUljmHX2oWmgSKUuXQHSKS8CMdydNfkY Oe8HFX1UXnyJOGLxqR3QneQ6ejE9MQyxBohJXGznWoQiLE7BcNBdtztarIhgXKJKXAOv t0gtpWPDlXrA+yZpUvnW0+mcN0fsOcEYKKeAhYsHwGy8vorIlWhgGoeCCaQu6xd442tJ Kg4B8E3Xsd8Z7eED5IZzTqiG2kWt73Zo00tSHIyrEeYKqdYjC3PzY7nqZjlg42Ee9pgN +xGQ== 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=tVgVxlfs9vyZxkaXlAYhWNe23avDgzXcpA7xki/Hwcc=; b=Ba+mglUYqehu8U4ToETyYvd+j7nzXd3c9cgf4AWQf3I9lMIN5E4Mu/hUb6yKgdFMhb z5Joxykdd8c0uOxvOahYdilQfLbONdWfvSGw7qBpiEW9eSoZu1E2VCneL3fxwmiOBhzw XD5xzFL9XKcqF5qzdTJGotcRrOIl9SQ8uJ57q+XnPK49YSOmDNwibyolgIZNYZF3/d2m V6P4w4LE2sK3YtKNkb2sARTeN/9A8eOVCb+HSHW40wh9Np233vdHTL3zFQpkze/8yVOZ u18ia5w4AM8k63fVf2dwPiIHxJ05EkfATLOKCXXY9L/j3Jd78l5TkeVNL+w7Rw//7TKA b+1w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=u0nJOx2i; 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 x26-v6si25625317pfn.286.2018.09.20.14.28.45; Thu, 20 Sep 2018 14:29:01 -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=u0nJOx2i; 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 S2388604AbeIUDMo (ORCPT + 99 others); Thu, 20 Sep 2018 23:12:44 -0400 Received: from mail-wm1-f68.google.com ([209.85.128.68]:35264 "EHLO mail-wm1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727252AbeIUDMn (ORCPT ); Thu, 20 Sep 2018 23:12:43 -0400 Received: by mail-wm1-f68.google.com with SMTP id o18-v6so1034365wmc.0; Thu, 20 Sep 2018 14:27:13 -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=tVgVxlfs9vyZxkaXlAYhWNe23avDgzXcpA7xki/Hwcc=; b=u0nJOx2iFV2gqRt6aHZJPzxnX7QIMvoqL5+G+yD+lmVDpNGg0JAk3wOyNy01tTyVmM COcbO4OImsMnuA8B4rTfEwujF18IxpnTnGM3jAvMjANp/qbb9GiMe0o81dxd6L/HisbY txHk+sRAThu4VlJDWo/qZAHhjX23X7Wj36p0qZrn3SoXB5U5uHp2qpB4McHsla6hIZPC anVo4BKMf3JvoJ4+2KfpOBKx3H39MA1pzKQsPzpZ8D5lvljzFdckWeK619IUAKbtW+SD lgrf4qSXeM/31QZFXhkICZnsgRBYD61u45A/XDrTyLk8oXJ53e4ikSWw8gYlorvvigml 4AmQ== 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=tVgVxlfs9vyZxkaXlAYhWNe23avDgzXcpA7xki/Hwcc=; b=ZyUazKdcoPKHEEgQngNROxZk0sWzROKuzK44JlmHkPSmvh77SHyUAl+O8zv4hCBqUQ xshhocmd+BT+Dqf41RLJTx3HVgP7XZJm9feSN5MKYfaglg2PapubGIy+yFr7FEY1Y7EC ocqAPL6OAENTepszx3YCWHLd6tGG8l7PA5fQA4xuyKqZaClVhdGuQITWDKcv8O42BFOD P/FOm6EnqzY/T6M9k3uVm2j8K4j3if6aonAfn4TJDvHMJt3Et/IbvkdcLDhqbPdYskIo vTNy3bf40EmMrN47C4a1JsZw5bjIieRNsxifGto1IduQOp6dDy8qGQ62EJZxjHm0WFO+ ef7Q== X-Gm-Message-State: APzg51A3HwQ+GJhRcbEhAGgtNsT6R6gjxXcVlkXPil4FfokD3NBz5MGY BzqTUb49FzYCsr4t7MCXR/o= X-Received: by 2002:a1c:87ca:: with SMTP id j193-v6mr4674673wmd.76.1537478832059; Thu, 20 Sep 2018 14:27:12 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id 198-v6sm4945313wmm.0.2018.09.20.14.27.11 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 20 Sep 2018 14:27:11 -0700 (PDT) From: Nathan Chancellor To: Aditya Shankar , Ganesh Krishna , Greg Kroah-Hartman Cc: linux-wireless@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] staging: wilc1000: Remove unnecessary pointer check Date: Thu, 20 Sep 2018 14:26:49 -0700 Message-Id: <20180920212648.25181-1-natechancellor@gmail.com> X-Mailer: git-send-email 2.19.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 Clang warns that the address of a pointer will always evaluated as true in a boolean context: drivers/staging/wilc1000/linux_wlan.c:267:20: warning: address of 'vif->ndev->dev' will always evaluate to 'true' [-Wpointer-bool-conversion] if (!(&vif->ndev->dev)) ~ ~~~~~~~~~~~^~~ 1 warning generated. Since this statement always evaluates to false due to the logical not, remove it. Link: https://github.com/ClangBuiltLinux/linux/issues/121 Signed-off-by: Nathan Chancellor --- drivers/staging/wilc1000/linux_wlan.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/staging/wilc1000/linux_wlan.c b/drivers/staging/wilc1000/linux_wlan.c index 49afda669393..323593440e40 100644 --- a/drivers/staging/wilc1000/linux_wlan.c +++ b/drivers/staging/wilc1000/linux_wlan.c @@ -264,9 +264,6 @@ static int wilc_wlan_get_firmware(struct net_device *dev) netdev_info(dev, "loading firmware %s\n", firmware); - if (!(&vif->ndev->dev)) - goto fail; - if (request_firmware(&wilc_firmware, firmware, wilc->dev) != 0) { netdev_err(dev, "%s - firmware not available\n", firmware); ret = -1; -- 2.19.0