Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1869386imj; Fri, 8 Feb 2019 08:38:48 -0800 (PST) X-Google-Smtp-Source: AHgI3IZzqm+eu14+ub2E2F7DsV0PKkqN7rbJU2rx0V//BXlNfrf/HkxK85Wg7OuBglntiQsybZta X-Received: by 2002:a62:3241:: with SMTP id y62mr23040063pfy.178.1549643928536; Fri, 08 Feb 2019 08:38:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1549643928; cv=none; d=google.com; s=arc-20160816; b=oigKyKOPfHmvPN9VtzwjTWcPdP4sGQlzzayuer1L8gksXcBpfMbZkUIh2QWCbZwx3V ixsyT+VsTFnwwghfn45VZA6ZjyKAq+U2Qylx/jmkw9btOqMdVQSyirBe+P7kcFcERAlm DxG0bUVu2zXnmVCz6sUsr7ysbp8XVggtXmCmGadjsTVJGbiDD046yDwj/YlJzZ/h1HCL OlCMSl3UXiI2OaCdn48ata8LKrIrtlYUbUi7XXSsNjE+zNxvTKJgi6CPsNI5hclMgx8d 3us5nTKgdnA1lAKx7WXipbhn8cC6J0HbQARX5w+K9N3oKr8VP3r60JcMxPowBkJqnoiv HN3Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=l0MCPWPfxgJXC/KYlVh+SF90EMjKH1cxh6keE+NiJ9g=; b=Lezgx4vk2HvAAw2kgUAOCFSNMUIF9U5agrDwNACuHtgoluQPJc3vYH5UI4SM1eklvZ OIH8EuHBGtU4ssiIFTZO9+k+zSrhKZWG6NKP963ATUqDUMNgVPU+PtyB377m34ob4K8D 51HYNv6oTCEx9tBxELlPzubFnC3FUjqQEzbl0sQvsZcpIYzIDrjyAQkpmYFUX9zcTkRi ji+qWg/GTTtb1VNOZFgsMbfAjfPwHGPBA8uazzUCx47imRsz4/9j3G54Rch5Fn97IiZz 9SyGvO+zyTnj9BnMbCz1Htpy0sQaoFRgQDSa17mULMMhdy7DBp42onFouhwVphx8Qsa4 rJeQ== 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 e6si2354183pgd.428.2019.02.08.08.38.32; Fri, 08 Feb 2019 08:38:48 -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 S1727265AbfBHQiR (ORCPT + 99 others); Fri, 8 Feb 2019 11:38:17 -0500 Received: from mail.us.es ([193.147.175.20]:34156 "EHLO mail.us.es" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726524AbfBHQiR (ORCPT ); Fri, 8 Feb 2019 11:38:17 -0500 Received: from antivirus1-rhel7.int (unknown [192.168.2.11]) by mail.us.es (Postfix) with ESMTP id 5480E127C7C for ; Fri, 8 Feb 2019 17:38:15 +0100 (CET) Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id 45488DA863 for ; Fri, 8 Feb 2019 17:38:15 +0100 (CET) Received: by antivirus1-rhel7.int (Postfix, from userid 99) id 39D5ADA86A; Fri, 8 Feb 2019 17:38:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on antivirus1-rhel7.int X-Spam-Level: X-Spam-Status: No, score=-108.2 required=7.5 tests=ALL_TRUSTED,BAYES_50, SMTPAUTH_US2,USER_IN_WHITELIST autolearn=disabled version=3.4.1 Received: from antivirus1-rhel7.int (localhost [127.0.0.1]) by antivirus1-rhel7.int (Postfix) with ESMTP id EED22DA796; Fri, 8 Feb 2019 17:38:12 +0100 (CET) Received: from 192.168.1.97 (192.168.1.97) by antivirus1-rhel7.int (F-Secure/fsigk_smtp/550/antivirus1-rhel7.int); Fri, 08 Feb 2019 17:38:12 +0100 (CET) X-Virus-Status: clean(F-Secure/fsigk_smtp/550/antivirus1-rhel7.int) Received: from us.es (sys.soleta.eu [212.170.55.40]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) (Authenticated sender: 1984lsi) by entrada.int (Postfix) with ESMTPSA id CBC3A4265A4C; Fri, 8 Feb 2019 17:38:12 +0100 (CET) Date: Fri, 8 Feb 2019 17:38:12 +0100 X-SMTPAUTHUS: auth mail.us.es From: Pablo Neira Ayuso To: Nathan Chancellor Cc: "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Pirko , Nick Desaulniers Subject: Re: [PATCH net-next] ethtool: Remove unnecessary null check in ethtool_rx_flow_rule_create Message-ID: <20190208163812.jjdqgghcwadazliu@salvia> References: <20190208044652.32166-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190208044652.32166-1-natechancellor@gmail.com> User-Agent: NeoMutt/20170113 (1.7.2) X-Virus-Scanned: ClamAV using ClamSMTP Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Feb 07, 2019 at 09:46:53PM -0700, Nathan Chancellor wrote: > 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 Acked-by: Pablo Neira Ayuso Thanks!