Received: by 2002:a05:6358:4e97:b0:b3:742d:4702 with SMTP id ce23csp267260rwb; Thu, 11 Aug 2022 00:43:18 -0700 (PDT) X-Google-Smtp-Source: AA6agR5vdrFzT69wfHvRtxYk9bFOCeZdyAtzaTQIYPj+TVnNUQtdb3OfUAAyM447xU4BuCGTGw+q X-Received: by 2002:a05:6402:14cf:b0:43c:f7bd:181c with SMTP id f15-20020a05640214cf00b0043cf7bd181cmr29237883edx.163.1660203797745; Thu, 11 Aug 2022 00:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660203797; cv=none; d=google.com; s=arc-20160816; b=YMQQBq4JiDFe6hEeB0iNmE9T4QM42iL4BOsdJpL+nyy5ia4LNHE3yFL/SzycHMpIuw Dj/Ul3LHAwwltVw8Ff9xgVn3YG1zhWbl1XK1dzWcBpCYwnhyIZWJDzu//NkQjxFEChx2 A/p7xsUtdrQcxFFX2TvglT5r5P+gR90Pwhvr5OGpHUL0jnYtZvg9lAC/Xw0Qfev8zo7B M7tXfXbXMgbYq4I8/NwRHC41id4c9nK+cOOrpnMv5XiCGSQ+1WEToL2suLhGiAUwsE47 r0SPJHk8n4D2Y6zpVvkPU08Vslqwlggo0MkWHTj13zhx0eFb9BBo8+sd32I93aA+OIXQ opeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=vQzF7kpSu5eN50wg4O1HZfp33hHW9CZ6v48/1K8BvQM=; b=J6pL+gX0XpfR6ERMMcl7U69V1qU8otv/v/Jytdxrz51g5en6KSaeDJmeXahuHN3zK/ 73eQk8sOw/dTZpWIExSyxLY97vHlXojml5s0GQVbBo2rROs9Sh/3EL01zZymQwU30laI IbaQYMBjWKok4S3WKq0+1riozsYfHPJAGZi0UDpIc5FMN7yEjh0yhtHaKAorXJmECQsF OoO2pi4mAnPx/cdEqYrn5JMCjmmP53NbqUS/bLwGE4xVdJ/ARarQFCBuFVaoA1jbd1QX 5uL6123NslABA6to98bYpcGIwX4Y+X7WhhldP7t7X1NAk6dqo07BQmFD2mXSq8YiqB8l Dnrw== 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 go7-20020a1709070d8700b0072b13aacd47si7270331ejc.194.2022.08.11.00.42.52; Thu, 11 Aug 2022 00:43:17 -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 S234313AbiHKHEH (ORCPT + 99 others); Thu, 11 Aug 2022 03:04:07 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41260 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233931AbiHKHEG (ORCPT ); Thu, 11 Aug 2022 03:04:06 -0400 Received: from mail.nfschina.com (unknown [IPv6:2400:dd01:100f:2:72e2:84ff:fe10:5f45]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 798E18E448; Thu, 11 Aug 2022 00:04:03 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 4341C1E80D32; Thu, 11 Aug 2022 15:02:01 +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 stnoK7Bp2iSF; Thu, 11 Aug 2022 15:01:58 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zhoujie@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 736A81E80CE3; Thu, 11 Aug 2022 15:01:58 +0800 (CST) From: Zhou jie To: johan@kernel.org, gregkh@linuxfoundation.org Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, kernel@nfschina.com, Zhou jie Subject: [PATCH] usb/serial:Modify the return value to void Date: Thu, 11 Aug 2022 15:03:58 +0800 Message-Id: <20220811070358.5472-1-zhoujie@nfschina.com> X-Mailer: git-send-email 2.18.2 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 Modify the return value to void,The return value is not used elsewhere. 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..ddb3a2d0f819 100644 --- a/drivers/usb/serial/mos7720.c +++ b/drivers/usb/serial/mos7720.c @@ -239,13 +239,12 @@ static int read_mos_reg(struct usb_serial *serial, unsigned int serial_portnum, #ifdef CONFIG_USB_SERIAL_MOS7715_PARPORT -static inline int mos7715_change_mode(struct mos7715_parport *mos_parport, +static inline void 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, mos_parport->shadowECR); - return 0; } static void destroy_mos_parport(struct kref *kref) -- 2.18.2