Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp378145imj; Fri, 8 Feb 2019 23:06:13 -0800 (PST) X-Google-Smtp-Source: AHgI3Ib6HaVMjfRlr5XwMKrfYH9UkQRrFz+shxLNFjoo6z43H0hSJX1+DdTG86sw8ltcoqroqQSg X-Received: by 2002:a63:b70b:: with SMTP id t11mr19298649pgf.404.1549695973566; Fri, 08 Feb 2019 23:06:13 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549695973; cv=none; d=google.com; s=arc-20160816; b=Z11LbBpwuG7jnwOViUXmTc/3B7gOhfmVsNMcrgjMQJ3P155Nt8yZDzNSmtJgJcvNrm lyOYikABtCUqKIzouUOCQqjis9lR+RWAegpZeTDYtOFJI2y0vRA+iT6zN45lQ0Xe6CJA ky/Mz/kztqUCcVQusG7k16xMgdea7Hc2EQ7VlMrpottGOdd7LuDOFuOgmaKf/BY6QjTx S6fL9CNBnEy4aq3EHFK3D68SRyht2cpCdY1kbhpxpJKlfNRQJl+0HZYLV4S1Vpt1gCky 3MRzjnAs39Yo5jsi4s8micRPSgq0Nf1CsSPbf3eUD4gmPwJPe9Os+euAg1EIVDwukfbs qCZA== 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 :references:in-reply-to:from:subject:cc:to:message-id:date; bh=YFPFrcoVrw71T55Z5oyNSkIBDm7LnM2ubdoNpZ6+xh4=; b=g2n5dWOGUZndwF3nFDTb2dYbtWavBNhZoeGKjvWvRfw0lYu9pX5PZpLCHbCGQ6Bjsx KS3EWbEqvXfvLSMv5XCN4SouBgNQT2XcSn50ovZmBQbjIsRMHrbtxecgUVcGUiIUpUKI HCQzudIGXSSCTMoLxejaCzHUJmCBzXhebbvs7r9A5QKyilVH4r/E9K7NMGnXY7b1otkS Oe1jnh2NtP0CGLBom8pix/pl5y5TUaNXXqhFHr3tiT2F3iOf/g3m92R95MZH7sPP7Twg 0RkRm3qwaqXt2gdQ1iu07jTi0F6VHoJ80/A1I4LrzL/XxilRULafHBWLLHneuk09wCwD jrxg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d14si4050995pgi.158.2019.02.08.23.05.57; Fri, 08 Feb 2019 23:06:13 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726979AbfBIHFj (ORCPT + 99 others); Sat, 9 Feb 2019 02:05:39 -0500 Received: from shards.monkeyblade.net ([23.128.96.9]:41536 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbfBIHFj (ORCPT ); Sat, 9 Feb 2019 02:05:39 -0500 Received: from localhost (unknown [IPv6:2601:601:9f80:35cd::bf5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id 82162149D93E4; Fri, 8 Feb 2019 23:05:38 -0800 (PST) Date: Fri, 08 Feb 2019 23:05:38 -0800 (PST) Message-Id: <20190208.230538.156874402966618176.davem@davemloft.net> To: natechancellor@gmail.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, pablo@netfilter.org, jiri@mellanox.com, ndesaulniers@google.com Subject: Re: [PATCH net-next] ethtool: Remove unnecessary null check in ethtool_rx_flow_rule_create From: David Miller In-Reply-To: <20190208044652.32166-1-natechancellor@gmail.com> References: <20190208044652.32166-1-natechancellor@gmail.com> X-Mailer: Mew version 6.8 on Emacs 26.1 Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Fri, 08 Feb 2019 23:05:38 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Nathan Chancellor Date: Thu, 7 Feb 2019 21:46:53 -0700 > net/core/ethtool.c:3023:19: warning: address of array > 'ext_m_spec->h_dest' will always evaluate to 'true' > [-Wpointer-bool-conversion] > if (ext_m_spec->h_dest) { > ~~ ~~~~~~~~~~~~^~~~~~ > > h_dest is an array, it can't be null so remove this check. > > Fixes: eca4205f9ec3 ("ethtool: add ethtool_rx_flow_spec to flow_rule structure translator") > Link: https://github.com/ClangBuiltLinux/linux/issues/353 > Signed-off-by: Nathan Chancellor Applied.