Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2626461pxk; Mon, 14 Sep 2020 20:05:47 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyRmXtq2XTEtfcPkx3YX5VGveMwmkMQJSsl9xvVQdWTElh8Vtu/Zk0+DhGj2kE08fbVHT6O X-Received: by 2002:a17:907:104c:: with SMTP id oy12mr18226918ejb.450.1600139147718; Mon, 14 Sep 2020 20:05:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139147; cv=none; d=google.com; s=arc-20160816; b=tGPqcx+n1d2RXBiPUZIfoAviavqgWQU4k5mFwek0HB7fyIui9N+8l3ezC1FgPxpUad N2I2+yWrqTaIeN5V5AUCI74qzilfvQMKvt+j2PcItN2qf7/CcfENb0oqoUtnJpkoC6/4 z/d93E4cEmQKnBSPj3QudxC/KCelB4b5puugAMN0JRCAXnGT1kGgtRvTixtH6cWZQmja LIQGuoIiuwOzMZgHQ1jBburmATNfiLhJTIqVRMDlwfS0wosjwGayNKuiopxrpkAKAKqW pvg/LV4W387tHiNUQAz2djTi1zhIaIjLE0OQncWNRndE3xaydCKZcijwsipUgNokRqbn 63Mw== 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 :message-id:date:subject:cc:to:from; bh=x/MG03JVc55Xydtn1j7Mr0GBSI+SupvOd5X5NQ8FvrA=; b=LnS2mDoJcF4k3UV78nPrIlnsl1O2WDAdxJI+/9e8DjqGI+UlqWC47ujZCXIaqbxzrb sHz+zOI0g2D2Eqkjws3yfuhI8y04DVYQij5BQqDsmaJUFLraxaG4yAxHQd+3GfrUDtsj ThNTLQUpadsEeTjizji4XoainlQdykwc+Ap2uLpn2w8cki9P+E3QEh2/UZkG291m9Squ 4mm/41YAOrhBiU3+VcnVLgXZkJIZxeLZqiOxL6KpkfE25cftorC/LyFOxDNSQzTiOOc7 IxMJEHbJjrq5HCEvQ5hX3S2kgX49b+AZcBI9Oqo15sfG+NC9fTKIqjWtI/YHTdEUQum2 x/Pg== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s5si6361522edj.314.2020.09.14.20.05.26; Mon, 14 Sep 2020 20:05:47 -0700 (PDT) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726210AbgIODE2 (ORCPT + 99 others); Mon, 14 Sep 2020 23:04:28 -0400 Received: from szxga07-in.huawei.com ([45.249.212.35]:41516 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726123AbgIODEF (ORCPT ); Mon, 14 Sep 2020 23:04:05 -0400 Received: from DGGEMS402-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 799807E95A5CC351DBCE; Tue, 15 Sep 2020 11:04:02 +0800 (CST) Received: from huawei.com (10.175.113.32) by DGGEMS402-HUB.china.huawei.com (10.3.19.202) with Microsoft SMTP Server id 14.3.487.0; Tue, 15 Sep 2020 11:03:53 +0800 From: Liu Shixin To: Greg Kroah-Hartman , Valentina Manea , Shuah Khan CC: , , Liu Shixin Subject: [PATCH -next] usbip: simplify the return expression of usbip_core_init() Date: Tue, 15 Sep 2020 11:26:31 +0800 Message-ID: <20200915032631.1772673-1-liushixin2@huawei.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.175.113.32] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Simplify the return expression. Signed-off-by: Liu Shixin --- drivers/usb/usbip/usbip_common.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/usb/usbip/usbip_common.c b/drivers/usb/usbip/usbip_common.c index e4b96674c405..4ce6c6a45eb1 100644 --- a/drivers/usb/usbip/usbip_common.c +++ b/drivers/usb/usbip/usbip_common.c @@ -755,13 +755,7 @@ EXPORT_SYMBOL_GPL(usbip_recv_xbuff); static int __init usbip_core_init(void) { - int ret; - - ret = usbip_init_eh(); - if (ret) - return ret; - - return 0; + return usbip_init_eh(); } static void __exit usbip_core_exit(void) -- 2.25.1