From patchwork Thu Mar 16 06:59:57 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Bernal Marin X-Patchwork-Id: 9627411 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C8BDB604A9 for ; Thu, 16 Mar 2017 07:00:19 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id BADE42863E for ; Thu, 16 Mar 2017 07:00:19 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AFCE128648; Thu, 16 Mar 2017 07:00:19 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=unavailable version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6004B2863E for ; Thu, 16 Mar 2017 07:00:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751141AbdCPHAJ (ORCPT ); Thu, 16 Mar 2017 03:00:09 -0400 Received: from mga04.intel.com ([192.55.52.120]:22909 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751093AbdCPHAI (ORCPT ); Thu, 16 Mar 2017 03:00:08 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=intel.com; i=@intel.com; q=dns/txt; s=intel; t=1489647607; x=1521183607; h=from:to:cc:subject:date:message-id; bh=yvpzV/CoMBNgPNtgMxsY2WtsdSCvt+WsgPX2ib+sBX4=; b=gAPnlOcqtsd+V5+iQaa+/1En77Z5Yhe4oO4PgT3fGyjqs/djLCzCjb2E rsi8FNs1drXfpiEWiq7oReICc6Uuag==; Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 16 Mar 2017 00:00:06 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.36,170,1486454400"; d="scan'208";a="75997296" Received: from miguelinux-clr.zpn.intel.com ([10.219.128.51]) by orsmga005.jf.intel.com with ESMTP; 16 Mar 2017 00:00:05 -0700 From: Miguel Bernal Marin To: "K. Y. Srinivasan" , "Martin K. Petersen" Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, devel@linuxdriverproject.org, Haiyang Zhang , Stephen Hemminger , "James E.J. Bottomley" Subject: [PATCH] scsi: storvsc: remove return at end of void function Date: Thu, 16 Mar 2017 00:59:57 -0600 Message-Id: <20170316065957.13405-1-miguel.bernal.marin@linux.intel.com> X-Mailer: git-send-email 2.12.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP storvsc_on_channel_callback is a void function and the return statement at the end is not useful. Found with checkpatch. Signed-off-by: Miguel Bernal Marin Reviewed-by: K. Y. Srinivasan --- drivers/scsi/storvsc_drv.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/scsi/storvsc_drv.c b/drivers/scsi/storvsc_drv.c index 3d70d1cf49a3..538f3e131275 100644 --- a/drivers/scsi/storvsc_drv.c +++ b/drivers/scsi/storvsc_drv.c @@ -1191,8 +1191,6 @@ static void storvsc_on_channel_callback(void *context) break; } } while (1); - - return; } static int storvsc_connect_to_vsp(struct hv_device *device, u32 ring_size,