Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp622833pxu; Fri, 11 Dec 2020 10:10:28 -0800 (PST) X-Google-Smtp-Source: ABdhPJxs2shuLmLGaHaKCJwXyVxP9nEW/UAN0RfNWZoarlKBDMWl5B+SHAMVaEhtosmsWm+RIN+K X-Received: by 2002:a05:6402:10ce:: with SMTP id p14mr13004771edu.12.1607710228022; Fri, 11 Dec 2020 10:10:28 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607710228; cv=none; d=google.com; s=arc-20160816; b=C771kP4hSG2iUqBc0iDk2gnwb7/JkNLfABzGSmMFPeabpiUIxpmAsi4OGM4PUWP7Be 9k22cKaS3PDtYY4RLB7GxDvl7QZgsEz0z1ojmQxVRwg/6NUBBanky1YEX7Jg3y6CqtvY THkEY/CJKQVKqW9g6napsqbMsYq+3+Ca+mu6UBcGzYG855HQSHyCXQSBiF0cbKLq43qv XyFe5pBoYBPHx/yhGxdkpWeBgu0jNq1NCk46cZR+bbpHXeoAeLB5O7Y/KihvG7SFhWeQ dseuXT3VKsR5aYAhsbK0VtRNECRM68eQp0Dk7vP5jMJOK33OSfKSK6xPgW5dFqOoa2wG T8TA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=OJHWi8Cus82HXx8XWtiO73/4A3zLIS2fed3JmgMKNzw=; b=cdp9HY7tIsMUN5DwsP8/P2qPQ5tSPgkEG+0RgZcg7lgx6rX4dF6Zof3LufayjcrR2E Kg2RhX+moX2PY8aQuK4TEeEKR1K7n2ce1TMvqC9LhWZ0ULF7KrlE14epxR3PycTpYxRB uBdEM6X/NpDhEsRFsoI/3MqXh9pJgtceNdC4dEQ+xkNFhUEUIZXFJpUlO7DW7nuXGxp8 L+N9dalDVtkXvdC7jT0kmWGSafI0znhhDN+LqklGRW64folvCOMvQAz3vKMpaBy42Gt/ 7PX+rVUg/aeIwrUZqButtaWYiYISMxAJp+Il2no0zx98IFb9Mq3bTq3+wwTbVKalLkns oLWg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g25si4845600ejp.67.2020.12.11.10.10.03; Fri, 11 Dec 2020 10:10:28 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392750AbgLKPoR (ORCPT + 99 others); Fri, 11 Dec 2020 10:44:17 -0500 Received: from mga07.intel.com ([134.134.136.100]:26085 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2390648AbgLKPn5 (ORCPT ); Fri, 11 Dec 2020 10:43:57 -0500 IronPort-SDR: jDDsCdwTJdmLxXFKw8BMZS+10WCBLwT3GkjoqRR2XIKibx88TzpjP1hoNW0Dg89045G18LYCBQ NiXLMGK7pFtg== X-IronPort-AV: E=McAfee;i="6000,8403,9832"; a="238557330" X-IronPort-AV: E=Sophos;i="5.78,411,1599548400"; d="scan'208";a="238557330" Received: from orsmga002.jf.intel.com ([10.7.209.21]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2020 07:42:10 -0800 IronPort-SDR: 8GcczHJRgPBSbn8VAs1UX0mK6shOPulvVbZXGtRkUx2zpw+u2LOGZr/EjJIldtVope8EorfnUR SifaBcA/1b3Q== X-IronPort-AV: E=Sophos;i="5.78,411,1599548400"; d="scan'208";a="349521183" Received: from aslawinx-mobl.ger.corp.intel.com (HELO [10.249.144.44]) ([10.249.144.44]) by orsmga002-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 11 Dec 2020 07:42:07 -0800 Subject: Re: [PATCH] ASoC: Intel: Skylake: Check the kcontrol against NULL To: Lukasz Majczak , Pierre-Louis Bossart , Liam Girdwood , Mateusz Gorski Cc: alsa-devel@alsa-project.org, Guenter Roeck , Radoslaw Biernacki , linux-kernel@vger.kernel.org, stable@vger.kernel.org, Marcin Wojtas , Alex Levin References: <20201210121438.7718-1-lma@semihalf.com> From: =?UTF-8?Q?Amadeusz_S=c5=82awi=c5=84ski?= Message-ID: <669da93a-2ef2-fa08-6c7f-be2e6b5ac363@linux.intel.com> Date: Fri, 11 Dec 2020 16:42:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: <20201210121438.7718-1-lma@semihalf.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/10/2020 1:14 PM, Lukasz Majczak wrote: > + kcontrol = dobj->control.kcontrol; > + if(!kcontrol) > + continue; Small nitpick, there should be space between if and opening parenthesis as recommended by coding style. Thanks, Amadeusz