Received: by 2002:a05:6a10:af89:0:0:0:0 with SMTP id iu9csp5355469pxb; Wed, 19 Jan 2022 16:55:34 -0800 (PST) X-Google-Smtp-Source: ABdhPJw/GhDZjVXDt8yPwNTPiWIeA9XAYZerSN1e04kaeAHJY1HUVdtSlUNBpd165vSs9O3BDMIn X-Received: by 2002:a17:902:d703:b0:149:db85:9b30 with SMTP id w3-20020a170902d70300b00149db859b30mr34943890ply.23.1642640134653; Wed, 19 Jan 2022 16:55:34 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1642640134; cv=none; d=google.com; s=arc-20160816; b=t8XZemboaATQyDHZzUoQYuLdpBxj4jzi2Pz3AtDTEfNFj+6D/+y6ADWvomB+MCQoxa 3n7q5e+oyGu1OH5LpVBhfC5qxDpQt+lGpLN3h7dTuqumWxZfI+V5zm+FSqsuc5KAoFUM 15EpmZSl1ro5WHIo89e3lrlZIUUYBVlmfUHFHLCNuBxa8yhRLpZpHH3MDJIkfTYWlcQe pRF5t6nCAXXS3XVfLd66NZ7x4g47isdkT6jcILBt/cuYf5KAkrEf8V0en/fHj1X+4C6o eG/c34n/eC1fmFuEof82LNgJkfbvkrXRwm8Dz5/HgVSaQzuKQOURr8rKtZqt7FkhF67h Oa+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ESkxugrDF83AuiVooYHxdhni2Li70FsJ1JzGYWnbrh0=; b=MZa03E2516EShGwd45dMjLaAyGZBWklwR7zkeBkYBUiyob2+8MNR0K9EkgIjB3QxC9 3NodcQy360AZ/AUdHMbO5IakR+7CFskmpmAJI/nG2Xib7sHZyAccq2sCe1tQFFHmaMSZ Mu2FMabXmxDfg4OvdHUYbVl9LMisFeVizQfSpcyWGPbjs4UW77mvTYTXqXZhNWBmnVQz zMKVX78J4+KrupwS/42mE74/+822tWqkHRMmfgHhxRbFi2lGxd/Y9VMZukpK00KkrBsM 5HEHDXHoh/RIVMIPOQZWphaPwjQ/VeBMq8Y4cz4FKP3OK9mr2lB1moq/8F7tVRpYlUVc xtkg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6L8sQ5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id o10si1607179plg.212.2022.01.19.16.55.22; Wed, 19 Jan 2022 16:55:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=N6L8sQ5G; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240738AbiARJ0R (ORCPT + 99 others); Tue, 18 Jan 2022 04:26:17 -0500 Received: from mga17.intel.com ([192.55.52.151]:64332 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234638AbiARJ0Q (ORCPT ); Tue, 18 Jan 2022 04:26:16 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1642497976; x=1674033976; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Ripv7PKf8AE+DZencjgRj4jyC+vbpn4HOU9gpa3R3nI=; b=N6L8sQ5GOJhf+6lBVyMCtBMVZCYom3YibpEoo3im5j6pnMtxqQs068Sx FZ0tT/tsKfaKTtvnUKoacwGCSN04ay3JU4DO8AfMD/nw6sn04dxDIsePU BlXatHnvVZpDRhuHZB23lK/rdGJju4ienoaJHgUPB5CR4r3tct15zDKDR Q7geReaWrx56jKw+GZxWs0KYPm++A0fKyf0G1B4bV0xA1mR0E55was4zZ ClljJnCIg1Pi7eRjg19fYJjwZYPzCAEVrT3WBZ7jQvRxfnuHtgXZ+jFAC MA7TGe7+uKjaIdWIyJaas8Dmc4zkEo5q4Dkbqp1XvV5iCnlfTgBlyXEco Q==; X-IronPort-AV: E=McAfee;i="6200,9189,10230"; a="225452482" X-IronPort-AV: E=Sophos;i="5.88,297,1635231600"; d="scan'208";a="225452482" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Jan 2022 01:26:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.88,297,1635231600"; d="scan'208";a="578339881" Received: from lkp-server01.sh.intel.com (HELO 276f1b88eecb) ([10.239.97.150]) by fmsmga008.fm.intel.com with ESMTP; 18 Jan 2022 01:26:09 -0800 Received: from kbuild by 276f1b88eecb with local (Exim 4.92) (envelope-from ) id 1n9kkj-000CPD-AO; Tue, 18 Jan 2022 09:26:09 +0000 Date: Tue, 18 Jan 2022 17:25:31 +0800 From: kernel test robot To: Hannes Reinecke Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org, Christoph Hellwig , Chaitanya Kulkarni , Keith Busch , Jens Axboe , Sagi Grimberg , linux-nvme@lists.infradead.org Subject: [PATCH] nvme-fabrics: fix returnvar.cocci warnings Message-ID: <20220118092531.GA25410@95126676e75f> References: <202201181710.TjfwKXN9-lkp@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <202201181710.TjfwKXN9-lkp@intel.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: kernel test robot drivers/nvme/host/fabrics.c:1095:5-8: Unneeded variable: "ret". Return "0" on line 1109 Remove unneeded variable used to store return value. Generated by: scripts/coccinelle/misc/returnvar.cocci Fixes: f18ee3d98815 ("nvme-fabrics: print out valid arguments when reading from /dev/nvme-fabrics") CC: Hannes Reinecke Reported-by: kernel test robot Signed-off-by: kernel test robot --- tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master head: e3a8b6a1e70c37702054ae3c7c07ed828435d8ee commit: f18ee3d988157ebcadc9b7e5fd34811938f50223 nvme-fabrics: print out valid arguments when reading from /dev/nvme-fabrics :::::: branch date: 5 hours ago :::::: commit date: 4 weeks ago fabrics.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) --- a/drivers/nvme/host/fabrics.c +++ b/drivers/nvme/host/fabrics.c @@ -1092,7 +1092,6 @@ static void __nvmf_concat_opt_tokens(str static int nvmf_dev_show(struct seq_file *seq_file, void *private) { struct nvme_ctrl *ctrl; - int ret = 0; mutex_lock(&nvmf_dev_mutex); ctrl = seq_file->private; @@ -1106,7 +1105,7 @@ static int nvmf_dev_show(struct seq_file out_unlock: mutex_unlock(&nvmf_dev_mutex); - return ret; + return 0; } static int nvmf_dev_open(struct inode *inode, struct file *file)