Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp6228577ybe; Tue, 17 Sep 2019 23:22:57 -0700 (PDT) X-Google-Smtp-Source: APXvYqzQCboLuFaa2XKtvP7PKv11zEYX9MaMQ+L8GkdcrkDG1XDp7BuhSfyQ3/kl7Wk4qT9wVe06 X-Received: by 2002:a50:fd01:: with SMTP id i1mr7761244eds.184.1568787777727; Tue, 17 Sep 2019 23:22:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1568787777; cv=none; d=google.com; s=arc-20160816; b=ZJ5+a/oUnyVU5P8clvruD80vYSEON3FC2zdgPEaX6X51E+TDpJJLhfpBDE/FgHAuz+ 3iz3M0RJAM7AUjA8uxdg4WrP96AD1rS1+O9+8ZChg3DWJKK0gTm2mU9duCqPJAwTjmxs XkENioMh2zFY6IkcmWs8tqkfMG/9f+ktumd5r3Md+qfki9WwaWsKBAYB/a1p70WNvHTV T9ILKFxg2czCPg0BOgw6BeYMuDo7E/iZFDh+JW8KpRTQs3+4Y94FUsvTAU6WtVkCN12J O5AthRS4UyIA4iUfWLiGZxsZ/ydMkQyAn05Wi5FNwdwZ2hQC6HJHLWHkQJUlV0yJP+Ls CVtQ== 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:dkim-signature; bh=aJGEnxh6YjizuNMdI5MfbhUJ0ypj3q5dDyazkWhLe9g=; b=E5hcW2yGlPn/O0FxcCbdbNkzzYUH3E9Xl2PjbxaIV0JgYmD0duuJibDjU1hydju/si K3rfRfCeaMTm23ZvGqkpA5vc7dg25C/2oN64owrZj6vijza3WS3N+bfZqjWZ1se/w4n/ wuMa/ehirsr+RT38PcQnVh+48hrJytpjZtYFcfXKEwL7xKjxlG9xMon6TaSiCD5uuifG 6zeYF/ifgY4mNk4aFJKq4bVO6u9x7Or0C0+9SC2LbIqMiTmJciLFe0uNk2tjrOiY1Td8 +FyfO/p10PlOhu0g0kOLy5kCg1tMOB1REfqEhnzXulWOuRPHIm5HZ4q4z88QRNIaLbTf lCRw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=tpT5yJrv; 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 y49si2705646edb.138.2019.09.17.23.22.34; Tue, 17 Sep 2019 23:22:57 -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=@kernel.org header.s=default header.b=tpT5yJrv; 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 S1726882AbfIRF5s (ORCPT + 99 others); Wed, 18 Sep 2019 01:57:48 -0400 Received: from mail.kernel.org ([198.145.29.99]:60472 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725834AbfIRF5s (ORCPT ); Wed, 18 Sep 2019 01:57:48 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id E8207214AF; Wed, 18 Sep 2019 05:57:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1568786267; bh=KIOTFHahegG0J33lyBSjGF2HsEMYmMKADeN/A2GZsdM=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tpT5yJrvuct7UQk9sGP0z/IslXA5oP29VnvStyZacsto6YRMh746KI0rvk+Xt9QBW 5kM136KqRl4NiXfk1+EDb171LXZzSGSd6CiJswnEEJL7p5hHr/SDF7FI1DA4Tuxr5H 1+40PkVaPOXL5EYtMBGTfdZ979AvbtUpmLrd7BfM= Date: Wed, 18 Sep 2019 07:57:45 +0200 From: Greg Kroah-Hartman 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 Subject: Re: [PATCH] ionic: Remove unnecessary ternary operator in ionic_debugfs_add_ident Message-ID: <20190918055745.GB1830901@kroah.com> References: <20190917232616.125261-1-natechancellor@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190917232616.125261-1-natechancellor@gmail.com> User-Agent: Mutt/1.12.1 (2019-06-15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 17, 2019 at 04:26:16PM -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 > --- > drivers/net/ethernet/pensando/ionic/ionic_debugfs.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewed-by: Greg Kroah-Hartman