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 730BFC7618D for ; Tue, 21 Mar 2023 12:02:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230446AbjCUMCY (ORCPT ); Tue, 21 Mar 2023 08:02:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:44292 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230233AbjCUMCV (ORCPT ); Tue, 21 Mar 2023 08:02:21 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3C4A61AB for ; Tue, 21 Mar 2023 05:01:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679400094; 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=ZUORpevlKQiU73IYOa4/Bo2bFBpxSB0mQvJe2zWG4uk=; b=Y/IzGBiy15N7O0jpNnT2O945RsbGl/EWX7eEgm8i9ZazEH8avNVBGgLQaCYrW3NEQEo4wN hUpjgFlu7gGLpe8vnBzPuahqM6sloeO8SA728GdKXbP24XOoq8yjj7NHNjXEaSTPuDjcX0 UdnjEMoDOKOjLP67bh+9+46vMQeByYY= Received: from mail-ot1-f72.google.com (mail-ot1-f72.google.com [209.85.210.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-665-52L5XCVqM56TWRX52YzHjw-1; Tue, 21 Mar 2023 08:01:31 -0400 X-MC-Unique: 52L5XCVqM56TWRX52YzHjw-1 Received: by mail-ot1-f72.google.com with SMTP id g19-20020a056830161300b0069d6fbb1a72so6736471otr.11 for ; Tue, 21 Mar 2023 05:01:31 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679400091; 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=ZUORpevlKQiU73IYOa4/Bo2bFBpxSB0mQvJe2zWG4uk=; b=hKK41xGAkn2yhi3k9G/GNdonF94lrS+2Yvcma3Gc+R66PRM4eZDIUlopXIFG00C5I9 tEWsahxetBs1sk1/XP63bbGXttRsmz6llJkbOca5I3+M/YX66Uz5FtvVmMpj/uZFkmGF j/4oOyntYdsWnK8a5MCSNe1kb3SXFdmx9fTPspAxRpdQvLSqLSzgj6Zw3Uxq0x0Bg69Q Hq7hZBYGKZ7y5NYS2RwvS9I01fe9lZgCZqlk1p/SRb+qxvoTYOB9Ge74lO5r4gC7Rvhu /4UagTdAt16mV6AKhkVgZ6X9TooACqsTUKvj+svXY/6RxvAlloQ249J3fimtitaUet2b 6PDQ== X-Gm-Message-State: AO0yUKWPgGdUCK6PpHPl4UjNP8SynyjKmQcicEOYJ5wYVq14hZw2hqKj MRforthU44dbM58LQCpW3NArh5TPuehNTrkPYDD7hgycWnhw71nQpYShXp1opC8p7QaPxQeqFxy rR1+7AnPnzxX3lrXTYpWgbIzg X-Received: by 2002:a05:6870:8289:b0:176:263e:9965 with SMTP id q9-20020a056870828900b00176263e9965mr871698oae.44.1679400091074; Tue, 21 Mar 2023 05:01:31 -0700 (PDT) X-Google-Smtp-Source: AK7set899kmqLmAPg7MyUnAjH/WqMmEGz8KcW68wrb4VDOu+woQ52tQV+an0Qn8sOt6JqzR5VPkhdw== X-Received: by 2002:a05:6870:8289:b0:176:263e:9965 with SMTP id q9-20020a056870828900b00176263e9965mr871660oae.44.1679400090393; Tue, 21 Mar 2023 05:01:30 -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 t72-20020a37464b000000b00725d8d6983asm9163201qka.61.2023.03.21.05.01.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Mar 2023 05:01:30 -0700 (PDT) From: Tom Rix To: isdn@linux-pingi.de, nathan@kernel.org, ndesaulniers@google.com, kuba@kernel.org, alexanderduyck@fb.com, yangyingliang@huawei.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] mISDN: remove unused vpm_read_address function Date: Tue, 21 Mar 2023 08:01:27 -0400 Message-Id: <20230321120127.1782548-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org clang with W=1 reports drivers/isdn/hardware/mISDN/hfcmulti.c:667:1: error: unused function 'vpm_read_address' [-Werror,-Wunused-function] vpm_read_address(struct hfc_multi *c) ^ This function is not used, so remove it. Signed-off-by: Tom Rix --- drivers/isdn/hardware/mISDN/hfcmulti.c | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/drivers/isdn/hardware/mISDN/hfcmulti.c b/drivers/isdn/hardware/mISDN/hfcmulti.c index e840609c50eb..ac665cf64f8c 100644 --- a/drivers/isdn/hardware/mISDN/hfcmulti.c +++ b/drivers/isdn/hardware/mISDN/hfcmulti.c @@ -663,20 +663,6 @@ vpm_write_address(struct hfc_multi *hc, unsigned short addr) cpld_write_reg(hc, 1, 0x01 & (addr >> 8)); } -static inline unsigned short -vpm_read_address(struct hfc_multi *c) -{ - unsigned short addr; - unsigned short highbit; - - addr = cpld_read_reg(c, 0); - highbit = cpld_read_reg(c, 1); - - addr = addr | (highbit << 8); - - return addr & 0x1ff; -} - static inline unsigned char vpm_in(struct hfc_multi *c, int which, unsigned short addr) { -- 2.27.0