Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp842151pxb; Thu, 17 Feb 2022 16:19:55 -0800 (PST) X-Google-Smtp-Source: ABdhPJxCFY/U7AZbd0/xYdeH+loZ0Ru/YPug2WYbGjnRS+gBf0G0tkFLBnkbUBAqn7xK0hiN9rt8 X-Received: by 2002:a17:903:2451:b0:14f:b91:fe3c with SMTP id l17-20020a170903245100b0014f0b91fe3cmr5305526pls.120.1645143595021; Thu, 17 Feb 2022 16:19:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645143595; cv=none; d=google.com; s=arc-20160816; b=MUYrW4pgLRdea5oYPuenKHlftnQ/JCn8Lo8c5whn90xW/H0dDvQG5U06JO+xCkbLzS OJXkC+EgNkJV0CJVqjDfO8SmbHpkE16XCjfYdVuljautGSotFrSuP6YHc6QnpZI75tKA cIaDRGENRfFKcHqBwtrZ1QNN7WKZDluYyyPn/FG2Cdlw1guCVJ71QSKKMwC6wdC4qsnl 34gZhrTDRZctMZdAQcxzM/OXDynBm7MQNFp00GgztKCdf74LGEM31/U+p2pu6ALGAiVK ZLnw82aSkBcF9CslEbzDvWorI4j4lT31lkfUkF5AV/v9+TeRaBJ/GRXiUhWn3Ag7OsFc oDRA== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=Hlr/d/ERnD+pEeo92J4Kt7XJIn6OwqkRg8lOkxiwSi8=; b=W3+QMApk4pz7992265mxu+sgOiOdVleY8D5d8vsrQ/pR22Si2fo6zf47lRPvlhPdQr 8D7C7nH3KY3SEvTo1ib64UKfy0QDebFjzBbHUCVLijfbdwQBPJtpipblhuH0+AgyvlAE OixWTFvwYMdiiHlIiY8Tf1+cuNbV7fy+M1LmXPecC3/0umphIIdfixdAgeVFRemzYVR2 6YYtH0LOl7+R3p+a2pbjx0gL968Dwd3WctA9G2lGOIkSH7LcdyAjzZCpP8yHkN2HcpWX PnveAg8kZ+BOA7A+1T2/hwi9lFIVuDpDKTUzd+Zigo4V+Wvhbo6z063wuWUO/y98Xd5q X0XQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D3JhmgGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p24si21471828plo.435.2022.02.17.16.19.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 16:19:55 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=D3JhmgGi; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 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 3B85C289BB; Thu, 17 Feb 2022 15:43:30 -0800 (PST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S244848AbiBQSux (ORCPT + 99 others); Thu, 17 Feb 2022 13:50:53 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:45696 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S244641AbiBQSu0 (ORCPT ); Thu, 17 Feb 2022 13:50:26 -0500 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 09E7F532EB; Thu, 17 Feb 2022 10:50:11 -0800 (PST) Received: by mail-ej1-x630.google.com with SMTP id lw4so9369046ejb.12; Thu, 17 Feb 2022 10:50:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=Hlr/d/ERnD+pEeo92J4Kt7XJIn6OwqkRg8lOkxiwSi8=; b=D3JhmgGijhe3YeJmKhqsDrxlZTQ+nnCfZEpNZe7LPE6dXw10y8ST1pJLuyZD5e9HsZ lYgmzgswvUJZc5BG65+MszYjimqoG3vM6Ml372J3SYkzyHW1C54yGU6uIqZ4Q+ZuwpjO 5pr91+m/GY85v3qUuCnd9CdkAnGV4Tt9QSlOlvBfAaWd7cE87MC+cDAJ6WtT7kw7bxih Iq//cM3wU2OYT/r4Q6VO4yQnPs/wfiMma84wIdcgzJj85X6E8AzrfOpHeBmYj/jTDGch gGOgACbSUluM7aIKdO2fyOLJ2Zvxkah6bFib0+ej4/7nj4orH5+wHFMQI0spXovkWqSf eikA== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=Hlr/d/ERnD+pEeo92J4Kt7XJIn6OwqkRg8lOkxiwSi8=; b=bWofK+jJdNavO1pnJjEZI7zufYZcmW7GaypFCRhnCkXrL66XBtOMxKvTSuD37XKymg kp2T3zOZYMytx79M1XuFu0OckRA5glV231zXiW/wIztp+yiGQMNfreViXKK7xeB1O9im 95RqDthf8xBV23dp44MnUHynvQpVm6s3+LD1vdXIgp2qZN8795WupP6mBgJj3cEpPBMq NuMisIdZV9/TsU23UatV8j5TWKX/PPJiV5OsoEWZ/xEdNlbK2bbUGKmopF6/a2uB/8SG 5nTvM5LTkcf2p/guVT8a4rs61SNId9BCM195uZHBgoCoLz8EX6rJha2tDzDz47BzpZus 1lLQ== X-Gm-Message-State: AOAM531QsKxTM2NDa3BLF87/hz9l8j+rh+HAyU/bpV6FFonfyRf2ZZZa 273k8Kg50CbQAJ69fn4Hc1M= X-Received: by 2002:a17:906:1582:b0:6a8:3574:119 with SMTP id k2-20020a170906158200b006a835740119mr3374995ejd.173.1645123809650; Thu, 17 Feb 2022 10:50:09 -0800 (PST) Received: from localhost.localdomain (dhcp-077-250-038-153.chello.nl. [77.250.38.153]) by smtp.googlemail.com with ESMTPSA id q7sm3493268edv.93.2022.02.17.10.50.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 17 Feb 2022 10:50:09 -0800 (PST) From: Jakob Koschel To: Linus Torvalds , linux-kernel@vger.kernel.org Cc: linux-arch@vger.kernel.org, Greg Kroah-Hartman , Thomas Gleixner , Arnd Bergman , Andy Shevchenko , Andrew Morton , Kees Cook , Mike Rapoport , "Gustavo A. R. Silva" , Brian Johannesmeyer , Cristiano Giuffrida , "Bos, H.J." , Jakob Koschel Subject: [RFC PATCH 12/13] staging: greybus: audio: Remove usage of list iterator after the loop Date: Thu, 17 Feb 2022 19:48:28 +0100 Message-Id: <20220217184829.1991035-13-jakobkoschel@gmail.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20220217184829.1991035-1-jakobkoschel@gmail.com> References: <20220217184829.1991035-1-jakobkoschel@gmail.com> MIME-Version: 1.0 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 The list iterator module should not be used if data == NULL. module can only old a legitimate value if data != NULL. Signed-off-by: Jakob Koschel --- drivers/staging/greybus/audio_codec.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/staging/greybus/audio_codec.c b/drivers/staging/greybus/audio_codec.c index b589cf6b1d03..e19b91e7a72e 100644 --- a/drivers/staging/greybus/audio_codec.c +++ b/drivers/staging/greybus/audio_codec.c @@ -599,8 +599,8 @@ static int gbcodec_mute_stream(struct snd_soc_dai *dai, int mute, int stream) break; } if (!data) { - dev_err(dai->dev, "%s:%s DATA connection missing\n", - dai->name, module->name); + dev_err(dai->dev, "%s DATA connection missing\n", + dai->name); mutex_unlock(&codec->lock); return -ENODEV; } -- 2.25.1