Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp3407016pxf; Mon, 29 Mar 2021 01:05:32 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzhvLLfopgHs4KjlwN4XhKbKGeE3SDyW/BriPS/T9Zu+hQZ76gOvqs3+KD8ZoXzgFzIkNXi X-Received: by 2002:a05:6402:19a:: with SMTP id r26mr26976711edv.44.1617005132000; Mon, 29 Mar 2021 01:05:32 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1617005131; cv=pass; d=google.com; s=arc-20160816; b=pzlNXvdKn+HSaDvLVP2rG7JotRxp7tGJv99iQuNqMOP2u/s+OzVoqo3KrPViWApPAB OhWGVDbVVGl5aMR4OPqiKY2l7KPMqQr4G9B0LyvnnxLCso3b2udDhlFHw/i9zmi3FmSX 0Ni0vncAmbIyO/hnE09xd1vfkszK6yNKfPgnqvL6w1iKle9ff71MDIw/ouqAygCtq04e hXJEzFiRH3xCyrJfVVcgsqD2MQxqwzRtRXxj49inI10ruaTWocahjex80BnjP27U4nDf vpvVqpLB1oeAUj5r3SnlTnhbxMre3vekE/pmWJzp/cuyoH3yrGUDpBKh38fX11N62fi4 u2Zg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:dkim-signature; bh=SXrRFJi/ILq5aGBoXPVef4yyY9EKWHH1N9sSZnyK0JM=; b=eGKZ9rUqduW7nXmtHn3Tbgi1W3FmmPSVi8Wi8k3GzTKkzD/PkRCTIA/q/NYfUqYPoB bpexr86iygIafosSpV6tinMYpYoE+Rv7zS9f0LKN8nOynn13QkFsVdgZgcPikYqXcfiZ 2sHqRq8gAgXCD4hhuTWseZwWSQUjI/JABtdu1cGCnd+GjLL8R3ljBzr+EXk78gVJN4ko uk8CCFXzwb8+3qnN9oUQ2cJ+F+BAFhzYYibHItc47xvDtoVqZhwmvUjvu6X8MXenMjPy P2AeYD5s5aO7WkRoM050rmYzACI1wbEWcNhrrp06Cg2dN4AxuPi8rQJiIrzY2WDQcT/8 EemQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="DVED5I/Q"; arc=pass (i=1 spf=pass spfdomain=st.com dkim=pass dkdomain=st.com dmarc=pass fromdomain=st.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=st.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si12304799edv.94.2021.03.29.01.05.09; Mon, 29 Mar 2021 01:05:31 -0700 (PDT) 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; dkim=pass header.i=@st.com header.s=STMicroelectronics header.b="DVED5I/Q"; arc=pass (i=1 spf=pass spfdomain=st.com dkim=pass dkdomain=st.com dmarc=pass fromdomain=st.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=pass (p=REJECT sp=REJECT dis=NONE) header.from=st.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231764AbhC2IDa (ORCPT + 99 others); Mon, 29 Mar 2021 04:03:30 -0400 Received: from mx07-00178001.pphosted.com ([185.132.182.106]:7086 "EHLO mx07-00178001.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231906AbhC2ICT (ORCPT ); Mon, 29 Mar 2021 04:02:19 -0400 Received: from pps.filterd (m0046668.ppops.net [127.0.0.1]) by mx07-00178001.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id 12T7w3eO002507; Mon, 29 Mar 2021 10:01:34 +0200 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=st.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=STMicroelectronics; bh=SXrRFJi/ILq5aGBoXPVef4yyY9EKWHH1N9sSZnyK0JM=; b=DVED5I/Q1mBaULUzuyBwA3YBDPuatzGd7gnSzSLCQ3ypiCXV80pqiQQY9a7UmUoCMVTP 8bnrkH2vJW2xBTvqaftenJTe2j9x16wX0Jqi0oTLFueYxtijHS5eOyCPZ57CblABSfCL BLiI2v3+dnfc/z3GTIgULHeubGOo+CfOh2MFNELHM7DklQh9jYg7emhWxkNKP04AZjN8 T7/nN6VaKV3zWYokKXFKRWYJ9v+SRlzzdHe4StdG/C2+u3sO1/zE99pMOVNcCa71YMvT vv7DTsJfqr7yJsSh4cdeSLrAcLorwe549s62VHU5m49BIV3S59Fy3Q7Gdh/Te3KZEiLq 4Q== Received: from eur04-he1-obe.outbound.protection.outlook.com (mail-he1eur04lp2050.outbound.protection.outlook.com [104.47.13.50]) by mx07-00178001.pphosted.com with ESMTP id 37jy132rar-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Mon, 29 Mar 2021 10:01:33 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=dqV6xIwCi4XCDXuyjfpoHabVFNOVsL+mOoo5yvfISNqEYbmOP7sBi5pJPQHUTkst7R265PbFt9nYwfI0VAtccvIYMxGLzvmm5W/aDEwqsF2Pwt/D/ap8ezHUE7xkvxVR9Z6pi4BB3PJ8nzHsteFATx9IWuk0K0C2VEGheyJpg+jU6BqFXv71lk26o5LOPoeN391RwXk1dlwIi7SnldV3sbMyOhUQqOvxlmN+zUmbrORVdV9eemkX4yThKoiNQ8JVAeYqEJ5vDusPwQ3AWlwj8cE9vxbUlVJ0P0gMxa60WTFpgrBs4sQ+G2XyMik69l+N/u7XWvHKuWvvKwtgPMv59g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=SXrRFJi/ILq5aGBoXPVef4yyY9EKWHH1N9sSZnyK0JM=; b=OZTApepHNmJvSM1W7aM4EZtASVUdQdWC77JlpI6lRGoveo8SMEp63lfUp427q7/GnSf300tMLWuAXZLely3P/edJJ6ghHo+rtQEeWp+caiEhwQqXDLySr0lLe15EvY/FCkva0YTUE8KL59AtMXZ0zL3LVGgefqgpoj490zNiXazBW5iIIt/LyMxYHpuUbsE0bE5nzFWkW6vD5HW3xrh5nq4st0RNkkCXu3rVqarpqBwlLpzoFautwRd1OrJUSBNm0sW2Boo0P1TkZKwO/mL086BVKJfyZwZsHaM5OsSxAporGTtdtlink80yn9lJOD1IETWnLhMjeovaEPfE+w4WEA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=st.com; dmarc=pass action=none header.from=st.com; dkim=pass header.d=st.com; arc=none Received: from DB9PR10MB4746.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:23d::22) by DB7PR10MB2521.EURPRD10.PROD.OUTLOOK.COM (2603:10a6:10:45::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3977.25; Mon, 29 Mar 2021 08:01:21 +0000 Received: from DB9PR10MB4746.EURPRD10.PROD.OUTLOOK.COM ([fe80::81ed:3852:ada8:9b98]) by DB9PR10MB4746.EURPRD10.PROD.OUTLOOK.COM ([fe80::81ed:3852:ada8:9b98%6]) with mapi id 15.20.3977.033; Mon, 29 Mar 2021 08:01:21 +0000 From: Arnaud POULIQUEN To: Pierre-Louis Bossart , "alsa-devel@alsa-project.org" CC: "tiwai@suse.de" , "broonie@kernel.org" , "linux-kernel@vger.kernel.org" , Liam Girdwood , Jaroslav Kysela , Takashi Iwai Subject: RE: [PATCH 08/17] ASoC: sti: sti_uniperif: add missing error check Thread-Topic: [PATCH 08/17] ASoC: sti: sti_uniperif: add missing error check Thread-Index: AQHXIotrJjpsBNRHWEitvVA/o530dqqaniNg Date: Mon, 29 Mar 2021 08:01:21 +0000 Message-ID: References: <20210326215927.936377-1-pierre-louis.bossart@linux.intel.com> <20210326215927.936377-9-pierre-louis.bossart@linux.intel.com> In-Reply-To: <20210326215927.936377-9-pierre-louis.bossart@linux.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: linux.intel.com; dkim=none (message not signed) header.d=none;linux.intel.com; dmarc=none action=none header.from=st.com; x-originating-ip: [165.225.76.79] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 3d90a89a-135f-4c3c-b6df-08d8f288d737 x-ms-traffictypediagnostic: DB7PR10MB2521: x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:3044; x-ms-exchange-senderadcheck: 1 x-microsoft-antispam: BCL:0; x-microsoft-antispam-message-info: 5dJlXtfp3j5861GvEPuEHDj0/LCZoN/lPpGrN1IJfcyTWkkxY+7lR0tHMdzssysrcdvMOJQ8o04QnUp80lYi0yTNNDyfmnuQBOxcrEsWFn0tgKWoGOaGcQslsZ2CIdDuEVTWmiXWrcuX9eIw1//38SGX6v8/w+EYxOZ2Wgd+Q7v6XkqB4g685bjlTFiXLNZhDniZwL369MGxetipPhdIcpz5mUrX2486S17rh4zH4somUMfLjGOSGGsrozfKfKvA6vBTbOXP5UPOwTzAqeEXrv/IROed6QVdK/MuFWEHg8lsD2Z+9Im63fexU8eWeX2lcIeaOWyNqwAn6Dl+uzSw+S/vdjOFGMGQIzYC9mndoprLHBz/FtUSoiMU/R0hHVa/7bEK7dgkNrObKfs8OlpW6WlDCJlvPWdS2FSslj9Vu8o+iXX108widaQHGCckxNLClumhO2tJgI4S3Hbil/pvALsU7E1NzCteX9IZoZ8hxlffa6hhVFzNi4KOvA5uv5NUKybA5PFed8qn/LmiMSEQNV7kab3pEPW75/r3vGJgwHfWxhkMhO2W8OW3CjAmW+5QiD8yVHso/mgIEGKxgEi2SOJUVLW6vsJK+qKML2JKXXNcz1YR4WNCyBxbIdGEA0+lq0/yu/J7KgHbOxZS62/zaJyCdVszLHK/65kq0R+peCk= x-forefront-antispam-report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB9PR10MB4746.EURPRD10.PROD.OUTLOOK.COM;PTR:;CAT:NONE;SFS:(4636009)(346002)(39860400002)(376002)(396003)(136003)(366004)(66946007)(66476007)(76116006)(26005)(33656002)(110136005)(55236004)(66556008)(86362001)(53546011)(52536014)(66446008)(64756008)(2906002)(8676002)(186003)(71200400001)(38100700001)(54906003)(8936002)(478600001)(7696005)(55016002)(9686003)(83380400001)(6506007)(316002)(4326008)(5660300002);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: =?us-ascii?Q?yTPAfiqsXzYoo2ZqIB7UEPsE5TsiQa+9jUvijl5d54JPV/IK0R3imrELKhku?= =?us-ascii?Q?oktY5rWMBkpNYLtWXaIsCbd0Lnu5IYxLHkPZHqfq9qpoHTr21/3VXWtV2BJo?= =?us-ascii?Q?9enEvsen1KMS2yMJ+iFi3hHHf6Y3xj66YrlGfSy7YPiKGe8/NDYV523z236j?= =?us-ascii?Q?rDVVjYFPbA7xgy+OHH3a3c+a73UxcbtmsaPJ9DVuJyb5QX0MhNkd/N6yCOrn?= =?us-ascii?Q?42ah7LxEEhKysk50qmRhdMvopEakcoPTa3DBUAXglHa8TRjWeSiY6UP+y9r9?= =?us-ascii?Q?vseztEW3+QUyZGcskqajZ/ThKajCI3H3AH1EcpswRinjp5P0mipJ4/pyAMvP?= =?us-ascii?Q?Syo55NyLPUTiw7ePpXxmnptLxn9CfnvTPDJm+I9v/JXFFyUMCwjc29c3Mm29?= =?us-ascii?Q?DtKJF8jhXcYT2lIcfD3OUBk1m2i+fAE+jsuKgcpERP2mP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fCJg61s6qWI?= x-ms-exchange-transport-forked: True Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: ST.COM X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: DB9PR10MB4746.EURPRD10.PROD.OUTLOOK.COM X-MS-Exchange-CrossTenant-Network-Message-Id: 3d90a89a-135f-4c3c-b6df-08d8f288d737 X-MS-Exchange-CrossTenant-originalarrivaltime: 29 Mar 2021 08:01:21.2116 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 75e027c9-20d5-47d5-b82f-77d7cd041e8f X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: bKrWhl5SLd97yFuUxdjkMq1tsRKPAdgLE+qB10uX1T6rkvGrQImyTm2zrJTD5rrK2oL9KsCl5A6xqv4NcdZHfw== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB7PR10MB2521 X-Proofpoint-GUID: zA5LLp1bTZm1o5i_0Ql61EaAp74PUCeA X-Proofpoint-ORIG-GUID: zA5LLp1bTZm1o5i_0Ql61EaAp74PUCeA X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.369,18.0.761 definitions=2021-03-29_04:2021-03-26,2021-03-29 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 priorityscore=1501 mlxscore=0 lowpriorityscore=0 spamscore=0 malwarescore=0 impostorscore=0 adultscore=0 phishscore=0 suspectscore=0 mlxlogscore=999 clxscore=1015 bulkscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2103250000 definitions=main-2103290061 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > -----Original Message----- > From: Pierre-Louis Bossart > Sent: vendredi 26 mars 2021 22:59 > To: alsa-devel@alsa-project.org > Cc: tiwai@suse.de; broonie@kernel.org; linux-kernel@vger.kernel.org; Pier= re- > Louis Bossart ; Arnaud POULIQUEN > ; Liam Girdwood ; > Jaroslav Kysela ; Takashi Iwai > Subject: [PATCH 08/17] ASoC: sti: sti_uniperif: add missing error check >=20 > cppcheck warning: >=20 > sound/soc/sti/sti_uniperif.c:490:6: style: Variable 'ret' is reassigned a= value > before the old one has been used. [redundantAssignment] ret =3D > devm_snd_soc_register_component(&pdev->dev, > ^ > sound/soc/sti/sti_uniperif.c:486:6: note: ret is assigned ret =3D > sti_uniperiph_cpu_dai_of(node, priv); > ^ > sound/soc/sti/sti_uniperif.c:490:6: note: ret is overwritten ret =3D > devm_snd_soc_register_component(&pdev->dev, > ^ >=20 > sti_uniperiph_cpu_dai_of() can return -EINVAL which seems like a good-eno= ugh > reason to bail. >=20 > Signed-off-by: Pierre-Louis Bossart Reviewed-by: Arnaud Pouliquen Thanks Arnaud > --- > sound/soc/sti/sti_uniperif.c | 2 ++ > 1 file changed, 2 insertions(+) >=20 > diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c = index > 7b9169f04d6e..67315d9b352d 100644 > --- a/sound/soc/sti/sti_uniperif.c > +++ b/sound/soc/sti/sti_uniperif.c > @@ -484,6 +484,8 @@ static int sti_uniperiph_probe(struct platform_device > *pdev) > priv->pdev =3D pdev; >=20 > ret =3D sti_uniperiph_cpu_dai_of(node, priv); > + if (ret < 0) > + return ret; >=20 > dev_set_drvdata(&pdev->dev, priv); >=20 > -- > 2.25.1