Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp187001imm; Fri, 21 Sep 2018 12:31:19 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZAQsUth0s4nHAWGnBUqi7VUaoNeoZq5YBDCni6quRVQ07t8397xkvfCWShlJZ5XbiYYH2F X-Received: by 2002:a17:902:8e86:: with SMTP id bg6-v6mr45921304plb.108.1537558279873; Fri, 21 Sep 2018 12:31:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1537558279; cv=none; d=google.com; s=arc-20160816; b=AXQopTWwpbpEvi4a17Ns887ImOizH7yllXtj6dNNcw69J37Fa1bEVmFzhYatAhlnCu GE+IbwveXoc41Wn9I1LnSRN1BQzCAYTlMF/WUl9UjqeLbYzvlD9Okf47BdsaO9qmT5Sc DzrNKgpEAmZCD85U2Z5/m6+D4V+xmWz0pm+lmGilVqpF8dfpUEZbOLr1+MsNJZO/rtNJ wa6ZwaX9VCmp2OqGcQg52wbtEPLIFaBmhTcX4BuMh89sA+x3KWoXbuDXX52+TqKONXAP yURB9+qoKqvsnaNnZu0uepCPYONY4gWb9vroXIKyI71xM5sGicUxeb0uvnV22PR2hAFv N2Fw== 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=GaoQEBM0/NgheinJ3VNXukjVC7Y9JtJWWy/HBwpOflo=; b=OjrS67cEgJfW42Hv8+xQK6I4KZZVuyutEw3zT4xS9TC34oNdPSo7PYnaKfHME1hLWR g8fQiDu9E3U5DZfVCWFQIUjTby8na9g8U/8DrKj8Xo8B86kQwSR9hcwXl7p6R2Dzev0l tbZ5XxDycmcikGsArZDDr5oTUzVTayc80aYumJ4Gk3MfQ4SHBnzaxQSqcCTWPPliXMUu HV0T7zuftvtYDti8pyihjw6DBLab2h/GUg7YBPgZocKfBUi1hZTjy+xPZkBUOdEfm8Vr ipzTE0v++RIl0SPLZF0YAxedU7Zh2yDbTQlDzFO7+tumP6f0ZyJ4fy+ISQ5POd/l6hiW BbsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b="BN55W/fs"; 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 z71-v6si27985271pff.223.2018.09.21.12.31.02; Fri, 21 Sep 2018 12:31:19 -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="BN55W/fs"; 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 S2391326AbeIVBVJ (ORCPT + 99 others); Fri, 21 Sep 2018 21:21:09 -0400 Received: from mail-wr1-f65.google.com ([209.85.221.65]:46530 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728456AbeIVBVJ (ORCPT ); Fri, 21 Sep 2018 21:21:09 -0400 Received: by mail-wr1-f65.google.com with SMTP id z3-v6so2044235wrr.13; Fri, 21 Sep 2018 12:30:50 -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=GaoQEBM0/NgheinJ3VNXukjVC7Y9JtJWWy/HBwpOflo=; b=BN55W/fsbBJ6BYnrkXS65uxKgRnFK7IaFSbAVhNO1vu0NvXD2wad09SfHecdk3SyGU QUhRKYy6rdn35UxLDV7a5ZwkKCeXAoweS1NtZXGWhf0eSSI/e5jzVxWrwSZa/iSTuwNe SUCyXrc58JQizr3ieVhiM4ABp8eoop+wqdYbDEyVWi3a2KOTvjs9SUd+y0cMsq9g11f5 gUH+sDrCqeoa3WSiNefETAAM1yv1mk+FjYFJNbRZQFPCfSUowHTttkWW0mvUZp922JcY on/PUVdTp/OmKdZKpeJzUggo2/TeoMFQwE58+Lv/o2Ci6g3pDsuNp8tAqGreqY1eh83S 8emw== 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=GaoQEBM0/NgheinJ3VNXukjVC7Y9JtJWWy/HBwpOflo=; b=s5m45Xc7uGkL6NaluwatGsAD/MH6lM71igfvToCdPa7P1gtusN7jADzAmmrdlD8mDf 3DGpAEtN9Bo+ByJWiU5OQL15ATz0aHsQXh3hBk+UqpXwt9YzJTPnB0wX1MVH75eLO1L3 WdtKjuJxvQvxjPXFMgnKYYte5sU4fGtNPXVFSDOOulaCQvc9iMz3c8U2iFgsu5YwgF+h Tn8lLwX/9TAwudl1rAkYRbccVUxF0UCateRnLOoNMSzGscrJWs8n+UOnQygMa+QcsX5Z /5aEowYR272lR44PPd+iWlIptv36yUvBx9FeoXXbnzNubaJSw34AMlGeXx74oYt3SYG2 Ww1Q== X-Gm-Message-State: APzg51AI67qSwf5R7TjJfeh6lfEn+TwZF5YX59vKrmkNqFrVtGBS/uXk QLxNFzY1N71y3OakgHLj7WM= X-Received: by 2002:adf:cc8d:: with SMTP id p13-v6mr40173255wrj.67.1537558249797; Fri, 21 Sep 2018 12:30:49 -0700 (PDT) Received: from localhost.localdomain ([2a01:4f8:10b:24a5::2]) by smtp.gmail.com with ESMTPSA id j44-v6sm47625570wre.40.2018.09.21.12.30.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 21 Sep 2018 12:30:48 -0700 (PDT) From: Nathan Chancellor To: "David S. Miller" Cc: linux-decnet-user@lists.sourceforge.net, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, Nathan Chancellor Subject: [PATCH] decnet: Remove unnecessary check for dev->name Date: Fri, 21 Sep 2018 12:30:34 -0700 Message-Id: <20180921193034.808-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. 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 --- net/decnet/dn_dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/decnet/dn_dev.c b/net/decnet/dn_dev.c index bfd43e8f2c06..d0b3e69c6b39 100644 --- a/net/decnet/dn_dev.c +++ b/net/decnet/dn_dev.c @@ -1363,7 +1363,7 @@ static int dn_dev_seq_show(struct seq_file *seq, void *v) seq_printf(seq, "%-8s %1s %04u %04u %04lu %04lu" " %04hu %03d %02x %-10s %-7s %-7s\n", - dev->name ? dev->name : "???", + dev->name, dn_type2asc(dn_db->parms.mode), 0, 0, dn_db->t3, dn_db->parms.t3, -- 2.19.0