Message ID | 20230321181255.1825963-1-trix@redhat.com |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:604a:0:0:0:0:0 with SMTP id j10csp1956178wrt; Tue, 21 Mar 2023 12:04:45 -0700 (PDT) X-Google-Smtp-Source: AK7set+ppRFOAKHkT6U/TRfaYliq7RRL13r8QnOm0Qe1bpy6LcbPj3jO+Abs/42rCIFfkL/0TNku X-Received: by 2002:a17:903:2285:b0:19f:3854:3281 with SMTP id b5-20020a170903228500b0019f38543281mr216190plh.8.1679425485217; Tue, 21 Mar 2023 12:04:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679425485; cv=none; d=google.com; s=arc-20160816; b=EZgQD0iGrPWE5jLpWsVTk1pWt3W/WJTW/z99earq0LDOaKncIhe6OFTgx1yRCX9q6r ZEDJcd2oCwuOq43oI3zRRR25ua+aNmooqqh5uLQaWxhUURwX9VLX0u+OPgvRbzHk537W rWVWibNoOSGKzpIPbAl2R1QhZvspn3tBmapFEXGvRL5JOg8MZ8cxPkCnMwG1QrN+N7Nt ZxH9nIANExIwbl6qepdW7EOjgkVRotx4SloHXUOvOrq/pqG7lw/yRjX8YLLKC4Sw4GaR KWIWuRy7KHYKm4L01pIze0Rm6/Vxv7wdUKQJX489vCRUh8fdI9kKQM0xzwjC4mCW9nqT qv8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=7PqcmUw+IZmRGt9WUw0A+lCjcIOG3yrVoicilFi5R4o=; b=VZ1E3ltXwKYb8+Tma82t4Xjj092BnxephN7gOrXns3Arp1+BC5AmlCajQaCl+w6Dnx XBnidMzPxuZbc9Jvai+0sNLKp/C1eVwceoko44T84FC6KBteMeZfSg+2hNOkz63MeQ3H CbNqQGl5DQHld30aWxQ+OIP1/EALVB60XTjduMK+15jmJzFKJIMXR0PcM+peqcKHsPew uvqdBYRljuoqcm6wCoKiCjxcQytOB9FLU6q393oC3DuOQSjDTw6vhXmKpJFX1oIpxj6E ANBmqWiix9c2FjV1CiEl8HK98u+4gt/wPF/r8Narm7NrNsTARzlHBVmDzgR6F7eH561p n5QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y45a5O8g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v11-20020a63f84b000000b004fb954ce988si13859923pgj.727.2023.03.21.12.04.30; Tue, 21 Mar 2023 12:04:45 -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; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Y45a5O8g; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229871AbjCUSNs (ORCPT <rfc822;ezelljr.billy@gmail.com> + 99 others); Tue, 21 Mar 2023 14:13:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46432 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229945AbjCUSNq (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 21 Mar 2023 14:13:46 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 875564DE1F for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 11:13:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679422385; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=7PqcmUw+IZmRGt9WUw0A+lCjcIOG3yrVoicilFi5R4o=; b=Y45a5O8g1+HMWmmcW08oa8ZLJw6ndwm6If+RKdYm5BO2H9dcis9+ohFDBU4cVlwxwI+Co+ SW/Vkfy6jRIRyrr2VG7ehsLDZXIkXkXpfw94NnU2ApcV+e4QzBQWGUCg59WrwNpfhxExK7 4GNL5fBjKZXbsWInuRnO1FgBmu9nHwE= Received: from mail-qk1-f198.google.com (mail-qk1-f198.google.com [209.85.222.198]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-166-dOHoWW3BPYyG5Tom1apBQw-1; Tue, 21 Mar 2023 14:13:04 -0400 X-MC-Unique: dOHoWW3BPYyG5Tom1apBQw-1 Received: by mail-qk1-f198.google.com with SMTP id x80-20020a376353000000b0074681bc7f42so3415763qkb.8 for <linux-kernel@vger.kernel.org>; Tue, 21 Mar 2023 11:13:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679422383; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=7PqcmUw+IZmRGt9WUw0A+lCjcIOG3yrVoicilFi5R4o=; b=LhWeqYBWUpo3Qm8D14nJnN3eVOhlUKlAm5uS13y0GPOS9+pEadRJlqpQU+w5+Ilx6Z Ih8rGhCjt3geZw/iC1YuRwsoz/X1RLo/swLcAIuHEF9jsBjOmXXKwioa0WI6Atq65quq VeiKlAXfNY50NCTji+Nvm6ugSwrFTx0OBb9kK9VzKIrIuNIBfUukHbVPPWxNBooXUuHH wKlbtjzO4Qfqo/0m84K6rdXNwtGzZ9TzvtkOHPpD2YGZmP5V4zc1Tw33u3dFXI4Z3sim QEAE3pQW7I2Qo1jmUb8JhLuyMtPalMI19/7+m/5kryo3/eamho6d10jEYBpUE5P9sdGm nXMg== X-Gm-Message-State: AO0yUKXDuLdBB9YnXGjkaeQKsx5xxoOxU4fN2MGL5MRocLW9UggAmNlE AxBpyrSGnq3/gUlcX0JKTaraVkJH22SxV/RsPVsbNRPTt9UcvF6QrwD0ddD/nWVVcAXzbtmF+cd QRowUHxZv03MNSvwB3GOLjsyq X-Received: by 2002:ac8:7c55:0:b0:3e3:8119:7c68 with SMTP id o21-20020ac87c55000000b003e381197c68mr1356027qtv.52.1679422383558; Tue, 21 Mar 2023 11:13:03 -0700 (PDT) X-Received: by 2002:ac8:7c55:0:b0:3e3:8119:7c68 with SMTP id o21-20020ac87c55000000b003e381197c68mr1355993qtv.52.1679422383304; Tue, 21 Mar 2023 11:13:03 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id i1-20020a05620a0a0100b0074631fb7ccesm9599518qka.67.2023.03.21.11.13.02 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 11:13:03 -0700 (PDT) From: Tom Rix <trix@redhat.com> To: johan@kernel.org, gregkh@linuxfoundation.org, nathan@kernel.org, ndesaulniers@google.com Cc: linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix <trix@redhat.com> Subject: [PATCH] USB: serial: quatech2: remove unused qt2_setdevice function Date: Tue, 21 Mar 2023 14:12:55 -0400 Message-Id: <20230321181255.1825963-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1761005257247683808?= X-GMAIL-MSGID: =?utf-8?q?1761005257247683808?= |
Series |
USB: serial: quatech2: remove unused qt2_setdevice function
|
|
Commit Message
Tom Rix
March 21, 2023, 6:12 p.m. UTC
clang with W=1 reports
drivers/usb/serial/quatech2.c:179:19: error: unused function
'qt2_setdevice' [-Werror,-Wunused-function]
static inline int qt2_setdevice(struct usb_device *dev, u8 *data)
^
This function is not used, so remove it.
Signed-off-by: Tom Rix <trix@redhat.com>
---
drivers/usb/serial/quatech2.c | 8 --------
1 file changed, 8 deletions(-)
Comments
On Tue, Mar 21, 2023 at 02:12:55PM -0400, Tom Rix wrote: > clang with W=1 reports > drivers/usb/serial/quatech2.c:179:19: error: unused function > 'qt2_setdevice' [-Werror,-Wunused-function] > static inline int qt2_setdevice(struct usb_device *dev, u8 *data) > ^ > This function is not used, so remove it. > > Signed-off-by: Tom Rix <trix@redhat.com> Now applied, thanks. Johan
diff --git a/drivers/usb/serial/quatech2.c b/drivers/usb/serial/quatech2.c index 6fca40ace83a..fee581409bf6 100644 --- a/drivers/usb/serial/quatech2.c +++ b/drivers/usb/serial/quatech2.c @@ -176,14 +176,6 @@ static inline int qt2_control_msg(struct usb_device *dev, NULL, 0, QT2_USB_TIMEOUT); } -static inline int qt2_setdevice(struct usb_device *dev, u8 *data) -{ - u16 x = ((u16) (data[1] << 8) | (u16) (data[0])); - - return qt2_control_msg(dev, QT_SET_GET_DEVICE, x, 0); -} - - static inline int qt2_getregister(struct usb_device *dev, u8 uart, u8 reg,