Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp230705imm; Fri, 21 Sep 2018 13:19:45 -0700 (PDT) X-Google-Smtp-Source: ANB0VdaoItejqzJt9KODcnhr7oVKkv0AAcH0+dWRadHXYNHsGm+CJzwF/o88Zvef87G/W4zk3Th5 X-Received: by 2002:a17:902:76c5:: with SMTP id j5-v6mr45922321plt.140.1537561185217; Fri, 21 Sep 2018 13:19:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537561185; cv=none; d=google.com; s=arc-20160816; b=vVx1+9ITljL4kd6hreeVXPH73fs0RZei9lmTz3RrMUWxrdz4keQOxxnZ5k/G08A54s tTsD23B7vaDKxr82AVHa58Bxh6CrQ7kIO5RZkyHr9nNW+hHuv0ZhKXd/6u/D/z20SWER 85XNYvSv9rQfTsA/1WSf2PwBhrcxxfNM1PkXC1tpeJ0owrTXR/Eos3LPWyvvfKMdZ+tG Wwnc8jXlQN8gzmBhUQenFzEeXDVKTemOgWkpnD0mP8mqcpXB6rMB96tMX6IibtOro28w ZXvsG7CIHQ+5rVHQ12JlwQie6Usy6m363yudfWnSph0aHqH0LNEkyyV73d8/kSc5PY39 TLkA== 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:message-id:subject:cc:to:from:date :dkim-signature; bh=+hhBYQFcLfNo12hhfuATW5WW1qUUhYBI8Nhr9TPTUDg=; b=GWa6+83xA1f39LVWsT1w6g+884V5sMR185orH1eQeoilSKI/GFI6BAKZmk0lCCp8U9 L7DGBt6rrTzp6nbEuy30S8Fdo5rTTCcLbo174nISDEILuMs70s0lURt3l8xj4QK5q3rF chPYIP72THvGXKrWaziOW9W16rs7CGxi+D5Y5WQh1Aj9bQXGyw6eWrQRIi3oOyh+U0Kk DSS9tzaYFIK2I5DSM+a26g2a6ja+SmwvX81G0p67VPrywLai/jVvuScHR6K62uO7c1d1 lDmf/+od75Z4DyzGfwPfzANYWuCmKiGhr/CxvHrMhZwDC6TdYkEET5PsxjtbdueoGEX6 LAdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="FS//hYZ+"; 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 33-v6si195096pla.475.2018.09.21.13.19.27; Fri, 21 Sep 2018 13:19:45 -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=@networkplumber-org.20150623.gappssmtp.com header.s=20150623 header.b="FS//hYZ+"; 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 S2391412AbeIVCJd (ORCPT + 99 others); Fri, 21 Sep 2018 22:09:33 -0400 Received: from mail-pf1-f194.google.com ([209.85.210.194]:32970 "EHLO mail-pf1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2391319AbeIVCJd (ORCPT ); Fri, 21 Sep 2018 22:09:33 -0400 Received: by mail-pf1-f194.google.com with SMTP id d4-v6so6460357pfn.0 for ; Fri, 21 Sep 2018 13:19:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+hhBYQFcLfNo12hhfuATW5WW1qUUhYBI8Nhr9TPTUDg=; b=FS//hYZ+cEVUised2ea+UCe/h6c/b5r0gQ1lqcuajToHK5XsEIFH7lUjWFsN/m4iaf XN797B8y/L62CX2xfQRZOGN1wvqgxCkORXlFkNuH4uL8mpMiDfxeWNyPYEaONOadR2LO Rfp7WSNWRkcHfPo9SU+T/drDZdFlJAEI0FFjtoElVetpozZMAHaqZ2ZPL8lH/UkDgskC GCHra+Cs/S52w2rjima5JOyPPX24AoRPLOinP+z56uz78/QzM4DamX+CVnx532GT2/JQ ikibjlWW7a0X6UUj2ol3JunwofSu4rGDd8YnhSkF1s8WxnOW3UOHsga6TsL6M871U5tC ZRfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+hhBYQFcLfNo12hhfuATW5WW1qUUhYBI8Nhr9TPTUDg=; b=g6Uo2wrPhXdvk8shzUPQLmkzrgbgYYo4vBmrFN31tYnatSjTJjOJsO4Aljs7BrDUIC I7zWOMyRkZ31nh9ZvG/vwtWUwZtVHemTdFAT4tXoQvRoH+CwkHGJYXGdA7acpvUY6xZS +9d88c8w3whBy+qZNhHbQxq/YZ3S2YdVbW+GeArIGtdid434BnNmQ8ECMaXRdpnGGAI4 omUtm6tD9cYLuZB61lfwJc7Ql1L7po1iNMZxSqbE79UL4FKxxFVHGIJg9aYw2vlZmwRQ T+BmnVzRqXfxaIIb9GT1hnmeBva+n4tLwLwjJSH+r4Ep7Aq1FTAHiRWmi5uRPKIQsrY7 wELA== X-Gm-Message-State: APzg51AfyWPr/+e1AITyGbtmTLHUHCqSlqqxCqSD992qyeAAe8yHntKv LuJAt+OW4TglpOqX5UAajptl1Q== X-Received: by 2002:a62:e11:: with SMTP id w17-v6mr48676615pfi.242.1537561143996; Fri, 21 Sep 2018 13:19:03 -0700 (PDT) Received: from xeon-e3 (204-195-22-127.wavecable.com. [204.195.22.127]) by smtp.gmail.com with ESMTPSA id m10-v6sm3653174pgp.94.2018.09.21.13.19.03 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 21 Sep 2018 13:19:03 -0700 (PDT) Date: Fri, 21 Sep 2018 13:18:56 -0700 From: Stephen Hemminger To: Nathan Chancellor Cc: "David S. Miller" , linux-decnet-user@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] decnet: Remove unnecessary check for dev->name Message-ID: <20180921131856.0100018f@xeon-e3> In-Reply-To: <20180921193034.808-1-natechancellor@gmail.com> References: <20180921193034.808-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 21 Sep 2018 12:30:34 -0700 Nathan Chancellor wrote: > Clang warns that the address of a pointer will always evaluated as true > in a boolean context. > > net/decnet/dn_dev.c:1366:10: warning: address of array 'dev->name' will > always evaluate to 'true' [-Wpointer-bool-conversion] > dev->name ? dev->name : "???", > ~~~~~^~~~ ~ > 1 warning generated. > > Link: https://github.com/ClangBuiltLinux/linux/issues/116 > Signed-off-by: Nathan Chancellor Makes sense name in net_device is an array. Reviewed-by: Stephen Hemminger