From: Takashi Iwai Subject: Re: [PATCH] ALSA: aoa: onyx: always initalize register read value Date: Mon, 29 Jul 2019 09:23:09 +0200 Message-ID: References: <20190729071422.6424-1-johannes@sipsolutions.net> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx1.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id D8BD1F800BF for ; Mon, 29 Jul 2019 09:23:10 +0200 (CEST) In-Reply-To: <20190729071422.6424-1-johannes@sipsolutions.net> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" To: Johannes Berg Cc: Stephen Rothwell , alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Mon, 29 Jul 2019 09:14:22 +0200, Johannes Berg wrote: > > A lot of places in the driver use onyx_read_register() without > checking the return value, and it's been working OK for ~10 years > or so, so probably never fails ... Rather than trying to check the > return value everywhere, which would be relatively intrusive, at > least make sure we don't use an uninitialized value. > > Reported-by: Stephen Rothwell > Signed-off-by: Johannes Berg Thanks, applied now with a correction of a typo in the subject line and Fixes tag. Takashi