Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp4589136iob; Sun, 8 May 2022 18:24:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy+3ts1P0dbY5gOQI6RwSjxUSCJ9EXjv205dg7+sfbKVR/wKAjB8lG/NSi/A9ihjBeCTYuw X-Received: by 2002:a17:902:7088:b0:156:1aa9:79eb with SMTP id z8-20020a170902708800b001561aa979ebmr13852387plk.71.1652059453471; Sun, 08 May 2022 18:24:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652059453; cv=none; d=google.com; s=arc-20160816; b=gGZBYowdqLzGizNgM5yQE1w5i1Fb5L2fiEZGbaGD4LiZSW89tZxKYVn8yufgsbcdC/ Ylq+i97qezgtTbpG2QaanAW/Lwhx0PLxJwut/0k9tcaIhys+TEDM+EoP5tODsae6GxgX AhBY3bbCW04KPZYwWVGpmIlghSHbN61I+7qky88lxpluJqvMHO97ry7JE0wj3DRodMm2 1UcUHfHNcj/imZ+S5aw362E9fjyjngMp80sdj589YCRiU3YIZLOVpyu1rEENyepxHyUj wnFhsGR4aX1ZRmEQI/I9CFoyaGxuQqD7m9It3Cxw0Nr4TZUe1Q6R5ghu0WU4JZcrifcN qEAw== 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=A/zOqb4x/q8KxE0MrgpQFzG6bfh8WIATxK/7TnCd/GM=; b=bwx4+wF8RqCPZHbNaoIvTxMTANM+C9+0mGz7hs6pnZl8WTBxWPX4jXLvqa8hyn0tTO wuIqvYZdeLJve5W+jAHpcudkZioFcMdUbcsZl7XK+bQx4GwU9mhOE5WvKdK/ZcfZODwc bQIWvaBzGQpc9rvH4ykD69w1RUD1BMXh9PPMFi1wjmigGTBkxniYGFb7cxfPuyB3L8RM 2QKYLvVwoig+q2CPqtEfJptAuj74lrQ3BL71DhDcmDgVWBEgzYoQrNKjDEm0fhBHJqo2 11UWrP29CEKTWeeRgLKJVmpPCWTsfKg+10Ezp3Y7zPTxZNyPTdIUZeYAPCtWyyxkjEL4 FaPQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dmpe+mmU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id ls7-20020a17090b350700b001cd6a0be3e4si20231441pjb.48.2022.05.08.18.24.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 18:24:13 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=dmpe+mmU; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 1962F13DD3; Sun, 8 May 2022 18:24:02 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233100AbiEHVcO (ORCPT + 99 others); Sun, 8 May 2022 17:32:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48190 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232648AbiEHVcN (ORCPT ); Sun, 8 May 2022 17:32:13 -0400 Received: from mail-wm1-x333.google.com (mail-wm1-x333.google.com [IPv6:2a00:1450:4864:20::333]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CA940DEDC; Sun, 8 May 2022 14:28:21 -0700 (PDT) Received: by mail-wm1-x333.google.com with SMTP id c190-20020a1c35c7000000b0038e37907b5bso9782995wma.0; Sun, 08 May 2022 14:28:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A/zOqb4x/q8KxE0MrgpQFzG6bfh8WIATxK/7TnCd/GM=; b=dmpe+mmUEqO2Bi7E0HKUyAPX4i5aQHML9SA2Cp9S+SbSeywomzxtHiPKhBP3T5/+/Y WupsVLsHiANQprLBxqlj7xuQHXCa36j9ZmowYYq9se+XIqg1/rvNDIS0PVevvIf6vwxr mavAVUPp2V3+QqtTCi/bsIVIyE4i0vXPOuinZx1TzVMTB4wfFO7N8rTu2NIfToO1EVDQ Da4+MtG+VxzPKOzwZ1BHXCz7LifXdxjXJr4GWpMXHvJ6WCVXnOzK4k6G+RdJNZQIk/b9 584u425A8UsTxSBeiGZGIjGjU+v8EZ4ndodQqRBtm6o54J1IhMFW41PbOvsp9Dh7Qxg8 yBvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=A/zOqb4x/q8KxE0MrgpQFzG6bfh8WIATxK/7TnCd/GM=; b=rrO+Ynf/yK0sVjZ4p0B7V7EmBKMBrpkTYem/onXLEJORsy3nR3adUZXu38CM9yIce5 9BGtnHdncDP4tjkfWiW1P7kmTOvFAOZWkFY4f75cLHrRheyPfRrq5m6OQjw6VO8qsZPD 71XCkSdpq+zp+5JUWVWtAxcFNhi8nFVdpcWEhHN/drbeXdwFMSylHIQgOZoIalvi1slf R6c7Jm7WCQ8N1RpGqUhWoa3560rMwl38X0/yKGdYExpgK0JmNJLzlSQsTh3hXNCk3Za+ 3A6la0aV2eZL2vEu/b8lwvP8Bbp+4+3x8oH/glT9FDA9nmTx1asOVgiJbYxT0NK9N0ka 2/2w== X-Gm-Message-State: AOAM532Fo9D6qb0h34sdBrsndpAEG3EExkMTlSGLUmz2BxRzNvxShGmP ye89/aoyOyKGsBsE8OiGMG8= X-Received: by 2002:a7b:c8c3:0:b0:394:547c:e5af with SMTP id f3-20020a7bc8c3000000b00394547ce5afmr19608805wml.202.1652045300405; Sun, 08 May 2022 14:28:20 -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 x4-20020adfffc4000000b0020c5253d922sm9253047wrs.110.2022.05.08.14.28.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 08 May 2022 14:28:20 -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: hdsp: remove redundant assignment to pointer kctl Date: Sun, 8 May 2022 22:28:19 +0100 Message-Id: <20220508212819.59188-1-colin.i.king@gmail.com> X-Mailer: git-send-email 2.35.1 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,RDNS_NONE, SPF_HELO_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 Pointer kctl is being assigned a value that is not being read, buf is being re-assigned later. The assignment is redundant and can be removed. Cleans up clang scan build warning: sound/pci/rme9652/hdsp.c:3317:28: warning: Although the value stored to 'kctl' is used in the enclosing expression, the value is never actually read from 'kctl' [deadcode.DeadStores] Signed-off-by: Colin Ian King --- sound/pci/rme9652/hdsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/pci/rme9652/hdsp.c b/sound/pci/rme9652/hdsp.c index 3db641318d3a..dcc43a81ae0e 100644 --- a/sound/pci/rme9652/hdsp.c +++ b/sound/pci/rme9652/hdsp.c @@ -3314,7 +3314,7 @@ static int snd_hdsp_create_controls(struct snd_card *card, struct hdsp *hdsp) if (hdsp->io_type == RPM) { /* RPM Bypass, Disconnect and Input switches */ for (idx = 0; idx < ARRAY_SIZE(snd_hdsp_rpm_controls); idx++) { - err = snd_ctl_add(card, kctl = snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp)); + err = snd_ctl_add(card, snd_ctl_new1(&snd_hdsp_rpm_controls[idx], hdsp)); if (err < 0) return err; } -- 2.35.1