Received: by 2002:a05:6358:1087:b0:cb:c9d3:cd90 with SMTP id j7csp6945167rwi; Mon, 24 Oct 2022 08:01:29 -0700 (PDT) X-Google-Smtp-Source: AMsMyM48OneppXYIdZnojMS5ZcInFId8aC2Haf5GIr0yWoLQAz0fs9gA9Wk8dYmNwqCPGkj6eeIy X-Received: by 2002:a05:6a00:24d0:b0:563:6d36:eae8 with SMTP id d16-20020a056a0024d000b005636d36eae8mr33976638pfv.66.1666623689089; Mon, 24 Oct 2022 08:01:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666623689; cv=none; d=google.com; s=arc-20160816; b=MI+juWOj4A0zhvTpaURsvNGuEafh0qFhjRxI7toMHp2MzcLvsXSgzc4hP965xKZeeu Wf1YLF/hdYZXrFp2y2zEAOnUJ51Lw87UQRAa8sbNkeqUhwI1H/wU+sXLcbfsLyCcljnJ W01j7RK5eHZnGPnm8crTh3A/EZRCzQ2qpThBX1oQ12I190zHcZXT3RT1aVVjulIy2HJ/ Mmihh3m8WpljEvkk347xvKJSxg6GXNkTBEtUXPoOLxBETQt7jUqS7xqgeZhWP3hAQsj1 JHjaNOIIcsvA665Am2inVsItHY6qlEMMlTtpAa+0zupR+/2KVod6OwULcHPT9Cf083E2 sWLg== 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=4ckwP6SZrttFwr6q/sGcNYSFGy/msNDVyZpAOWEeZ8w=; b=MfDIiwxDkfHTsmC0NOxo/KxQVaC5qbEugJZGtfymRCiJhP3cHE5bjcJlU9wMo1ps+X +ccmVJIFlJftDTOpfBqSAH7LyMRj+Jmo+hpynx8WfDpMRkMczEN02y8RkMM5se3rEwqD 4qAuEBmGgYvob/VV2BDmQqas+VH2yKTs0thw1iQMrRY+hKtz9imyoRyZV0nhIkZcofbi fmNdSe9uF26ol8CKasAHYNEEloGoD0jqFjBV8bBgKA2vZko1QqhAn63Lz/tdJyQtPcU8 m13vYGG0Sl+t/AQBBTX/h4Oib70o5q5G3j2NIOvGEtyE17RvCpuJcBBlSMt8fHl1joqQ z9mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=inKQ1QRQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 8-20020a17090a000800b0020fadac08a2si92521pja.108.2022.10.24.08.01.15; Mon, 24 Oct 2022 08:01:29 -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=@gmail.com header.s=20210112 header.b=inKQ1QRQ; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231546AbiJXOgS (ORCPT + 99 others); Mon, 24 Oct 2022 10:36:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52690 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237092AbiJXOgE (ORCPT ); Mon, 24 Oct 2022 10:36:04 -0400 Received: from mail-wm1-x334.google.com (mail-wm1-x334.google.com [IPv6:2a00:1450:4864:20::334]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 61DFA43AD3; Mon, 24 Oct 2022 06:10:57 -0700 (PDT) Received: by mail-wm1-x334.google.com with SMTP id l16-20020a05600c4f1000b003c6c0d2a445so6578837wmq.4; Mon, 24 Oct 2022 06:10:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=4ckwP6SZrttFwr6q/sGcNYSFGy/msNDVyZpAOWEeZ8w=; b=inKQ1QRQBd2kH0yamrljN5I7Tavh58rIwYt8BjFrJvvpqQnI87e5BM8m11dqOvATDX O0dN7xO2ogwyzHdwfIIF/9S+5JTqPihCSDcaLTTRNaMh+rsvRYK3pxMESywxnoDdd9O3 Gbgvat5iOIZihcIdE5K7hGTgd9XXTmmb1P4Gq4FpQoG4Hdkx7MPWgBX+7/hacySY/7rk DGJwIKStLujvhDDabIJd/RC3d6DwMrDVuu0ne2UI49WcRHy8ghSWPydJedtmkpc6ToCe dujR1Bz3i65aZPdHRL27ttEwdIey8yWxuVKvKlbLE0kA8frWmyqkURU9Wzm8atEMgB6P rSRw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=4ckwP6SZrttFwr6q/sGcNYSFGy/msNDVyZpAOWEeZ8w=; b=d6ZiKU8Bhr1x9bSRkxtDJShxVUt+XjlS1u4ih/J0Myir7nldHAoK6hWLPe7ki0Z55U MNs8WX1q4zCgmfF/URsn9LaBlECBEE4gjpGm/dNAXCcToszRW9VXROXoJbrToYyy6Le4 jOSvBjhE7/9M6oqsLtL2DTFW/Gy+EtHG3V1do1eBJ+4q4X77lNSsSfuN8GYZcbrQg5hx M2sATsKMDt9SqctndSx8UesnFFtVsPkyG54Qcd8C6leBdWktgG+2ClU4PAwQpUb0TSdL /KGSSr/x/XAkUCStJuhiOmxYd3jS+xAcs3wkM8ECvjh9wSiPrdWu86LcOdzIkkv47qa3 HIPg== X-Gm-Message-State: ACrzQf1LwI/qxPvu9fWlBWwVyH2sMY+YsGYW3osjS0OKskUaJtRBonJG oGuiXgZpSvM742yHECsbcfQ= X-Received: by 2002:a05:600c:4618:b0:3c6:bf28:ae64 with SMTP id m24-20020a05600c461800b003c6bf28ae64mr44399479wmo.51.1666616884152; Mon, 24 Oct 2022 06:08:04 -0700 (PDT) Received: from localhost (cpc154979-craw9-2-0-cust193.16-3.cable.virginm.net. [80.193.200.194]) by smtp.gmail.com with ESMTPSA id d1-20020adff2c1000000b0022ac1be009esm27228344wrp.16.2022.10.24.06.08.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 24 Oct 2022 06:08:03 -0700 (PDT) From: Colin Ian King To: Jaroslav Kysela , Takashi Iwai , alsa-devel@alsa-project.org Cc: kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: asihpi: remove variable loops Date: Mon, 24 Oct 2022 14:08:03 +0100 Message-Id: <20221024130803.2156295-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.37.3 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS autolearn=ham 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 Variable loops is just being incremented and it's never used anywhere else. The variable and the increment are redundant so remove it. Signed-off-by: Colin Ian King --- sound/pci/asihpi/asihpi.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index 8de43aaa10aa..001786e2aba1 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c @@ -725,7 +725,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t) unsigned int pcm_buf_dma_ofs, min_buf_pos = 0; unsigned int remdata, xfercount, next_jiffies; int first = 1; - int loops = 0; u16 state; u32 buffer_size, bytes_avail, samples_played, on_card_bytes; char name[16]; @@ -806,7 +805,6 @@ static void snd_card_asihpi_timer_function(struct timer_list *t) (unsigned long)frames_to_bytes(runtime, runtime->control->appl_ptr) ); - loops++; } pcm_buf_dma_ofs = min_buf_pos; -- 2.37.3