Received: by 2002:a25:b323:0:0:0:0:0 with SMTP id l35csp1373067ybj; Fri, 20 Sep 2019 09:24:35 -0700 (PDT) X-Google-Smtp-Source: APXvYqwds5KieApbjTDATBCIKLYnw8Gbjq191hMNj2R4uDKXQJ/N0ZlnoBnsUcz3mDHt/Bgy1tNn X-Received: by 2002:aa7:cf86:: with SMTP id z6mr22214690edx.230.1568996675366; Fri, 20 Sep 2019 09:24:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568996675; cv=none; d=google.com; s=arc-20160816; b=KQ6DvbvZxS7f0YVfhVfmplX5ZvaJegELQhNezweNQkEHVDEiVxE8RssK9CoagikwbM Xxky0v6yxjPDztPlL396DOYsWmVi/fr+t9FCBfAgg8kNZvRWHTt4JunFMXTqYu+zddNn jgW9GRZJOdKcY1W0YlFk/pKEbnAzCCP+9zTyvtT76mkydBdFfvq6Cf35h83lhAd9OMqQ UPuFv0gfm+0IznQMU0rxLKsSOuOCwgnav3lG5vRs9qCboPHZAPDKv6BoaAF9EEiyYf+Z 43XzXnshYDkx95G6kZ55jPzbwGtNle4BatZ7Yvrbl9z5EllSBny5wLKEViRYXW3gW3up BnrQ== 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 :organization:references:in-reply-to:message-id:subject:cc:to:from :date:dkim-signature; bh=YTp5B1qD8E9aflcOxXO4o+LEcSQkbFxZ9MJfYS1B/aY=; b=nmsiI838jqszWZVvCZUYcX2+RNpYeWB5AVAxc3B1DuAD6ayKUPXfca4rCvLBaZBrad FMxM5wNFeFyF69PoDbXAE5Gt7NZPlPsbIHBegwnvhLBC+oaivnz85KilQuSF8PKIQJWq qlLScfogmxX2R6kntAxD7gc/PQlvzuAkhKatrsx/AeDPsYV3HPoPCrT4C8fkse43iyow OwErOemqwTvgbhBQwcPXJcT6iPTn5YKwmvJqWGy7dRgwADZ4s260ETrc9zdUlm4CDRcL AlyUfcb6Seq4zAOd6rPtIfs543irysNNquXXUH7dRwFy+nnbJERYDhLTR9oSAnKmKJ9o 9liw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=tAi6KJc1; 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 v10si1752521edc.224.2019.09.20.09.24.11; Fri, 20 Sep 2019 09:24:35 -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=@netronome-com.20150623.gappssmtp.com header.s=20150623 header.b=tAi6KJc1; 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 S2394392AbfITAVm (ORCPT + 99 others); Thu, 19 Sep 2019 20:21:42 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:36772 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390178AbfITAVl (ORCPT ); Thu, 19 Sep 2019 20:21:41 -0400 Received: by mail-qk1-f195.google.com with SMTP id y189so5444303qkc.3 for ; Thu, 19 Sep 2019 17:21:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=netronome-com.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:in-reply-to:references :organization:mime-version:content-transfer-encoding; bh=YTp5B1qD8E9aflcOxXO4o+LEcSQkbFxZ9MJfYS1B/aY=; b=tAi6KJc1ByzYT5nMutazH/kLr1utqSsJFknFvHpj54XCTbUT2K4+0UOf5BbZe7lzdx h3t+Xz5lVwr9REvW3R7lKKS+FiULp0arjEPvn03l9VEgBxPHuSNlxieDuQgxBu6VgRpR 2dwZy6GgWFfQlp47xAywud/3/l3MuMAOJAkl/x4VI3te+AP3LLeCvjyecJ9dsIZN3cfd Up9dmNYCbP+TjBSD9UU7Tnf/3yBuqHdaFVQOAb9igELNb7BKGO7rq/JDrIu+oO3oycNR 6/+qWVkpNdO6YFupeqXgHoDnhbIHbGlKwz7OptlNrluWVc+HyGcc07VeupgsMGehnq98 z2Wg== 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:organization:mime-version:content-transfer-encoding; bh=YTp5B1qD8E9aflcOxXO4o+LEcSQkbFxZ9MJfYS1B/aY=; b=HvXpB7XV/5YaylnkshZtqCplo3p4yPwzNB30f9gsDvdnr/75O8yq0RivA4am8xVSVR ZpLODjnEU0jZHaRuWAsWRMF7xKo8MneQfgyECeGKe77HoY6Y0SE9TQoLbO5z6fBJcBuJ d151ESTL6cijmeojVqIOQF6RKieo6xTDIPYtUntvUcvnTQEZgs7Jei5P24ARupnJ4x3o 7sOFzpdaPNuJCvCua03sqTXi28JaMYi7CdYgc/xzWI2xuh68s/AWXYW5gylZyrtm9oYq GFWJH+dFU2cCrIWwfZHWh3sTpF3lDlI0aHhJBFSPnmeLg4ZDTlBxWE5/Ay9u2iO0XHOk 9m+w== X-Gm-Message-State: APjAAAXsZvzXgR+CSOhCc/6kzz9DrEigq4xPFaXLNqJnMNSZAZIXoJ7+ R6KnxRyrpkUar922HLDNvEG1YQ== X-Received: by 2002:a37:591:: with SMTP id 139mr590821qkf.162.1568938900968; Thu, 19 Sep 2019 17:21:40 -0700 (PDT) Received: from cakuba.netronome.com ([66.60.152.14]) by smtp.gmail.com with ESMTPSA id c16sm198104qkg.131.2019.09.19.17.21.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2019 17:21:40 -0700 (PDT) Date: Thu, 19 Sep 2019 17:21:36 -0700 From: Jakub Kicinski To: Nathan Chancellor Cc: Shannon Nelson , Pensando Drivers , "David S. Miller" , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, clang-built-linux@googlegroups.com, Greg Kroah-Hartman Subject: Re: [PATCH] ionic: Remove unnecessary ternary operator in ionic_debugfs_add_ident Message-ID: <20190919172136.01f0e016@cakuba.netronome.com> In-Reply-To: <20190917232616.125261-1-natechancellor@gmail.com> References: <20190917232616.125261-1-natechancellor@gmail.com> Organization: Netronome Systems, Ltd. 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 Tue, 17 Sep 2019 16:26:16 -0700, Nathan Chancellor wrote: > clang warns: > > ../drivers/net/ethernet/pensando/ionic/ionic_debugfs.c:60:37: warning: > expression result unused [-Wunused-value] > ionic, &identity_fops) ? 0 : -EOPNOTSUPP; > ^~~~~~~~~~~ > 1 warning generated. > > The return value of debugfs_create_file does not need to be checked [1] > and the function returns void so get rid of the ternary operator, it is > unnecessary. > > [1]: https://lore.kernel.org/linux-mm/20150815160730.GB25186@kroah.com/ > > Fixes: fbfb8031533c ("ionic: Add hardware init and device commands") > Link: https://github.com/ClangBuiltLinux/linux/issues/658 > Signed-off-by: Nathan Chancellor Applied, thank you!