From patchwork Thu Aug 11 08:42:37 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Zhou jie X-Patchwork-Id: 597812 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 31B6CC25B0C for ; Thu, 11 Aug 2022 08:42:49 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234601AbiHKIms (ORCPT ); Thu, 11 Aug 2022 04:42:48 -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> Precedence: bulk List-ID: X-Mailing-List: linux-usb@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)