Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3569780ybg; Mon, 28 Oct 2019 15:08:27 -0700 (PDT) X-Google-Smtp-Source: APXvYqyK6ibPyzfW+vgilDFIFbNZY8ou3tgMIXjmpwEYYIugcQK00VeQxa1oYVTLi9vQXdVrAVj3 X-Received: by 2002:a05:6402:32e:: with SMTP id q14mr7991627edw.53.1572300507759; Mon, 28 Oct 2019 15:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572300507; cv=none; d=google.com; s=arc-20160816; b=LHB8J2BwOJthDMvxfc6TLtg/JVQGNkQLaBa1Tde6YmS1cFEOOeN+SyK6RxJVok7TmM eNFbwBpbFtg588vlcNfR8fxe2s9H2o2PlgMA3AQyjD+rH8nkorSmj3iW+qb2TAwlCbqL 552/CGA4TC3/tR6xbJlw7dTGaA6F4qe9hVAFHWHR15yAXIHKDifypMtK4+aiW8Qz1wvI hvlPFBgjVdYQ3Ytx8ZgLlJy8EyZmqPU2jJdwRKbUbctfLOPqACsDuRKWTSBl96uG3pFl fS6Mk4Q6PcvRMVvagRltB+jod1o2F0/MXizppWTSR09kXa07xWHQ3Ivm2YdGxXPUaBKT 8VmQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:content-disposition :mime-version:message-id:subject:cc:to:from:date:dkim-signature; bh=0uPwjvPDDcbZrAi/t7A1WG2QuL8CBu6DIq/6jf6WPZc=; b=W9IWZ76Bihgn+lGWHRFHfbGtByPDZwlUq8wMbTI7juxwbK7mFCUoGzMzmn8/gyqH2G iAjlvQXe6e0MNaIMm6o0rerc+1Q6Wwz1Dj+Uwz0/GaHNxjbgolU0LDjbCROjg8ChWs4R YkvMIfbPFsDb6I85c5oXZFygNnwzR2wWcW3vg0VSUYZPHGIUhv2o70rvNA0zTlSsYobg joLfwfNbSvwMa+Tn2FgdLCUz6j6QDWY0lnQq9iwu0zfVewtIe1k4Ilqm/28tmr50+nYO d53ajFGc3nMvkGgN9+/U14sm1gd4LCEeVjCNfMUQWy1TuyDfY8l885+o+ngexsbkgsQ1 NOjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=IiHYQCFR; 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 qc28si7055490ejb.175.2019.10.28.15.08.03; Mon, 28 Oct 2019 15:08:27 -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=IiHYQCFR; 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 S1731435AbfJ1Tmp (ORCPT + 99 others); Mon, 28 Oct 2019 15:42:45 -0400 Received: from mail-pf1-f195.google.com ([209.85.210.195]:36310 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731436AbfJ1Tmo (ORCPT ); Mon, 28 Oct 2019 15:42:44 -0400 Received: by mail-pf1-f195.google.com with SMTP id v19so7611738pfm.3; Mon, 28 Oct 2019 12:42:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition :user-agent; bh=0uPwjvPDDcbZrAi/t7A1WG2QuL8CBu6DIq/6jf6WPZc=; b=IiHYQCFRSdg9h2t1Z9J5bqFPXe6+jjYnEGURx7ceCFWsou1IYyr7C5v35ukK7aA3rJ zyqI/kZi6iOMqC+XhwGr2wVVDBxRVTlsCQAnQfs9WktYJlKDLOpltyDlcy6hs0mGqZpz ZfOqBXqUsm/m9FaeGlBi07m0SIq4fC6QTQNrHNJRFlDUGGo1DwGA6RfetCzhAMRbSIJo o3yndYSx11SsXSIgnnvDTkOyxhiTjsS2SPrD31g34wjDzSpQZQw0lfblorFTwtc3hvIq Gkn/sKZiRAESDallHwQRWQy2IczxghbIKpmtMbncFang8KexeRjKp3Gnd1qNfEaXnzqq ECvQ== 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:mime-version :content-disposition:user-agent; bh=0uPwjvPDDcbZrAi/t7A1WG2QuL8CBu6DIq/6jf6WPZc=; b=e8HWWBrOAyWFfVgajrfJtb8IKY7yxkDqCcHwhNzIgm4gvi8qlI9i8gNx4rDUGEybcR hW1S4Rx/eGBJAACcmBmhlz79Q3vs9mXJlw9EGBwvEjWqc4Xagftn7cChcNDsxXzGxCKW luI1fNuXRaTk43tl8AsOEGp3Wb5kmoaLHumXBjo5FKCQobwt/5CWZU1EovN3derOnm7R 90Or+sOIMTlwa2hKc8lGZ14293FdAU48wP34g4XAobnbS6SCg53OystcaU1ixnivXR9+ KhCHNug0FtJGVhvBOrkr77H1Q8YqGnx5tz6J+JUzFhj1lziR9mjdgijkuugKPHZVVcYq 1GOg== X-Gm-Message-State: APjAAAUrmuNQJhIggzmu/i6C1jjLjYR7T9eLy/kO25LDspcwC/yroV+H MeXmqnfbaMpFdMDRsWkOoMU= X-Received: by 2002:a62:82c1:: with SMTP id w184mr9140474pfd.134.1572291762706; Mon, 28 Oct 2019 12:42:42 -0700 (PDT) Received: from saurav ([27.62.167.137]) by smtp.gmail.com with ESMTPSA id j14sm11899910pfi.168.2019.10.28.12.42.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 12:42:42 -0700 (PDT) Date: Tue, 29 Oct 2019 01:12:34 +0530 From: Saurav Girepunje To: jejb@linux.ibm.com, martin.petersen@oracle.com, varun@chelsio.com, emilne@redhat.com, saurav.girepunje@gmail.com, gregkh@linuxfoundation.org, hare@suse.de, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Cc: saurav.girepunje@hotmail.com Subject: [PATCH] scsi: csiostor: Return value not required for csio_dfs_destroy. Message-ID: <20191028194234.GA27848@saurav> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Only csio_hw_free() calling csio_dfs_destroy() and it is not checking return value. So remove the return from csio_dfs_destroy(). Signed-off-by: Saurav Girepunje --- drivers/scsi/csiostor/csio_init.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/scsi/csiostor/csio_init.c b/drivers/scsi/csiostor/csio_init.c index a6dd704d7f2d..28b77fa8b015 100644 --- a/drivers/scsi/csiostor/csio_init.c +++ b/drivers/scsi/csiostor/csio_init.c @@ -154,13 +154,11 @@ csio_dfs_create(struct csio_hw *hw) /* * csio_dfs_destroy - Destroys per-hw debugfs. */ -static int +static void csio_dfs_destroy(struct csio_hw *hw) { if (hw->debugfs_root) debugfs_remove_recursive(hw->debugfs_root); - - return 0; } /* -- 2.20.1