Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3282512pxk; Tue, 15 Sep 2020 15:16:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0LVbh8LOe2TILMMdDm9h+97Clh0U2wvRBh7gLhcDKqQb8CvZ7xDMHvK3SHDOahzA2hEho X-Received: by 2002:a17:906:1b11:: with SMTP id o17mr23707975ejg.67.1600208177983; Tue, 15 Sep 2020 15:16:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600208177; cv=none; d=google.com; s=arc-20160816; b=mahBt2IYgWI6RLXCxRzUuVSXVYuoPCNyK/pQVtBRPhTvdPnRtnkozKWHiS2BTao15E 4oQCBEUx7V6i4u5iHIsxgP5AmJG4o6CyDre7/8EAMA6TARol4aFUusTK+netVQQsrkdQ AZf57mv3J3eOpAdWpht5YX6e2fjeTqogF4BWawi5tbr8kDu4QEGVgSSaPKOyszO4wl2U y36Cr1PkT1t1SSlQImmlkI0QHOM/9ttUUgJbxhKho2cAf6U04K/0GBMwMnF8TtSnnzUZ MSEmlN40J31QyNl+E2vrVqCieN25CGtcDfwYxeJnEqCdD2r/D0AIuId59Rt/a8xaFynW 1fZg== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature; bh=j1IjPX42QV4ZtmFRWDiz+pKpHRVz7JIwU6XXJfdBbV8=; b=V1Hq4wWaEJWJI+1s2MB9hdysVIoptzGUoGfuAINc3FrwDt5go+F0Np/ktUstHl28W7 jy226v/li63tIi82BXo1/6N/gTAI/kIa2BF2RwzRbtcJI8ObT4BHiS6O5JSHjGSBWibe hh6QJbyNAjhCA9CrzggXG1gogFF2cvlaNJg20xtpOAzz7KLKK1eZY3aS0hdT95AdqBCh MVNJz27pk7KHabEjgf5bpZyekm5+MTkVgwjBjKl55OXOb1Pkl+aTHANi54SwH46zD8Cv pOhr64lDM1KwnNV1mxLG5SG7znFTpA+Grf83oVHxM9orfecQdxkehtTjQ4CXaDzmA3hw rThg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=B0GnAyAM; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t15si8375816edw.359.2020.09.15.15.15.55; Tue, 15 Sep 2020 15:16:17 -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; dkim=pass header.i=@linuxfoundation.org header.s=google header.b=B0GnAyAM; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727925AbgIOWPP (ORCPT + 99 others); Tue, 15 Sep 2020 18:15:15 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727759AbgIOQit (ORCPT ); Tue, 15 Sep 2020 12:38:49 -0400 Received: from mail-oi1-x241.google.com (mail-oi1-x241.google.com [IPv6:2607:f8b0:4864:20::241]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8CCA9C06178A for ; Tue, 15 Sep 2020 09:37:50 -0700 (PDT) Received: by mail-oi1-x241.google.com with SMTP id i17so4557536oig.10 for ; Tue, 15 Sep 2020 09:37:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=j1IjPX42QV4ZtmFRWDiz+pKpHRVz7JIwU6XXJfdBbV8=; b=B0GnAyAMlkdBkFa/WL3TZAE+Js/7ZQOwxfCf8Ri+PiqaQ5dm3hLmTuwobKrbCRpMAz jTRuGgQ+xvJJ9LYvdbVGkrxJTR4ta9884mUF16m/oS6CNFPmbJEBdaBClf+rUMUKoz4j Yn0sH7WN0aSs9dW1P7Lrfknf7+/lJhZDZEP28= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=j1IjPX42QV4ZtmFRWDiz+pKpHRVz7JIwU6XXJfdBbV8=; b=IOBJZgPekCVm/VJAP46BmF+INTlXt2nnmVtKz4dBs4m3Xy+Vz0VUAIuj05NPqOOCcd T/LPg6mEYRiIyJeaF+hKbitbXkGgqZznCzG0sFzE0KUpkGUM9aRXdeloAXyTGsg/aOxr ovAwqCIwFvzSE4NnOYlYHk2N/RymOPY3yMBfXW8PpwNi6m5gLpQx2b403yN0sBCZLyRJ zc5IMzuzOkvZ8PNdA3BkHo8uqfRKy9EIm8qp0vAtq8R3HzXEm0aVK7ShgosopuqhgQ9Z fFvhFbJA+KspyQWhSs2+aiHDjaaLHuKLWdB0JYEWXSAkBZ+GhOqpz2pw5YNJxthoIRh8 jNAg== X-Gm-Message-State: AOAM531j0+w9fkpJ7Hnda/Ew6B1378wS4fHLK7GZCimcMVA0dgAwwhFJ KrJhO6g1YOUpfyvhJf9DDEQxJA== X-Received: by 2002:aca:fd95:: with SMTP id b143mr203924oii.68.1600187869898; Tue, 15 Sep 2020 09:37:49 -0700 (PDT) Received: from [192.168.1.112] (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id m20sm7553821oof.23.2020.09.15.09.37.48 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 15 Sep 2020 09:37:49 -0700 (PDT) Subject: Re: [PATCH -next] usbip: simplify the return expression of usbip_core_init() To: Liu Shixin , Greg Kroah-Hartman , Valentina Manea , Shuah Khan Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, Shuah Khan References: <20200915032631.1772673-1-liushixin2@huawei.com> From: Shuah Khan Message-ID: <81ff1561-ab22-905c-7fd1-424814e96c41@linuxfoundation.org> Date: Tue, 15 Sep 2020 10:37:48 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: <20200915032631.1772673-1-liushixin2@huawei.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 9/14/20 9:26 PM, Liu Shixin wrote: > 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) > Looks good to me. Acked-by: Shuah Khan thanks, -- Shuah