Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp309745rwb; Thu, 11 Aug 2022 01:45:34 -0700 (PDT) X-Google-Smtp-Source: AA6agR4IpFrqqank6Uj5mw7AjFQ9f7AG4JqIUs6MyAbeSWK5KNs7VjnftD8HdiEU2+FKZGqjWlfO X-Received: by 2002:a17:907:2724:b0:730:d36c:d5f6 with SMTP id d4-20020a170907272400b00730d36cd5f6mr23729230ejl.277.1660207534461; Thu, 11 Aug 2022 01:45:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660207534; cv=none; d=google.com; s=arc-20160816; b=0SLHMkITRWrct/CQefnl2eLrG610AWF5xU21wP2ZhVU35meRp/C9tjqv1oRevH3BqX IZ2w7XWrFVEKN8YryQcYLDmJ7a25EMCG2LznG8IDQ4DExFhu55RPfCKsy5QPuq9U2dt+ YacxKbEh5AReOHazd6DZV9+WpQFWYSoMUOhDLcTNtQSRMJhMkYoy7056lcnMfBRo9o++ +8dS1YtRka3+acIDHiUtANKaU9r4t65/JRYN5UWN+WtXvoUcWGaEGEVlwRUUDPlDwj2n 5R89GIKP9/g+aSLqOpJ/4qESTlAlEJqdMSdJEI2zX+D5tKOKPOTyyBmxAx6RPUfFw1a/ 3w0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:references:in-reply-to:message-id:date:subject :cc:to:from; bh=QIU96FMiVpXxHh19GAwyhD7KqxxUmGvBUPcFmBdgKRk=; b=PiWtbpOp5WCQ9LP4NNoCY1VSpMrm9GQfcnymmifc257q/PW04qyCL9wON0FgrC0D9y 0vEiCKkIjnEyqIVPmhGzNQEEOcrWycsqQ7uAD8rSuIslPadkFrikCS3QmfQkleripDO2 wudv2hp1usiA2gu4cDV/AFkk+Hj4Y3HqMkseepM06sP05tf/Pv6fwtA1StbTwc90gTz1 VCVJoUYhTe6SzFCfHiLyEwUGY0bw9ZXpqI4ZPTMDgMuuc4Rb77h806xRQHGjKT1N106m v6QZBh+aDoIxHJaOMOxhePbmHd51+rCkGHcKjrh0zSlm5ssNQC7mrdV9/8e3ngZ1SwLU 9jaw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w26-20020a17090633da00b0072b580c899dsi5412928eja.71.2022.08.11.01.44.43; Thu, 11 Aug 2022 01:45:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234605AbiHKImt (ORCPT + 99 others); Thu, 11 Aug 2022 04:42:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47554 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234593AbiHKImp (ORCPT ); Thu, 11 Aug 2022 04:42:45 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1DCE18E0DA; Thu, 11 Aug 2022 01:42:45 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 3A12E1E80CE3; Thu, 11 Aug 2022 16:40:42 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id QgsDFPFouBp6; Thu, 11 Aug 2022 16:40:39 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 565891E80D32; Thu, 11 Aug 2022 16:40:39 +0800 (CST) From: Zhou jie To: gregkh@linuxfoundation.org Cc: johan@kernel.org, kernel@nfschina.com, linux-kernel@vger.kernel.org, linux-usb@vger.kernel.org, zhoujie@nfschina.com Subject: [PATCH v2] usb/serial:Repair function return value Date: Thu, 11 Aug 2022 16:42:37 +0800 Message-Id: <20220811084237.6651-2-zhoujie@nfschina.com> X-Mailer: git-send-email 2.18.2 In-Reply-To: <20220811084237.6651-1-zhoujie@nfschina.com> References: <20220811084237.6651-1-zhoujie@nfschina.com> X-Spam-Status: No, score=-1.1 required=5.0 tests=BAYES_00,RDNS_NONE, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Repair function return value,The previous return value did not work. v2: Modifying function return value type does not work. Signed-off-by: Zhou jie --- drivers/usb/serial/mos7720.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/usb/serial/mos7720.c b/drivers/usb/serial/mos7720.c index 1e12b5f30dcc..215b1c87fa07 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c @@ -243,9 +243,8 @@ static inline int mos7715_change_mode(struct mos7715_parport *mos_parport, enum mos7715_pp_modes mode) { mos_parport->shadowECR = mode; - write_mos_reg(mos_parport->serial, dummy, MOS7720_ECR, + return write_mos_reg(mos_parport->serial, dummy, MOS7720_ECR, mos_parport->shadowECR); - return 0; } static void destroy_mos_parport(struct kref *kref) -- 2.18.2