From: Clemens Ladisch Subject: Re: [PATCH RFC 09/10] ALSA: usb-audio: clarify implicit fb quirk for Roland Date: Sat, 20 Jul 2013 15:30:42 +0200 Message-ID: <51EA9102.1040500@ladisch.de> References: <1374258210-14486-1-git-send-email-eldad@fogrefinery.com> <1374258210-14486-10-git-send-email-eldad@fogrefinery.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from out1-smtp.messagingengine.com (out1-smtp.messagingengine.com [66.111.4.25]) by alsa0.perex.cz (Postfix) with ESMTP id AFA0A260845 for ; Sat, 20 Jul 2013 15:30:52 +0200 (CEST) In-Reply-To: <1374258210-14486-10-git-send-email-eldad@fogrefinery.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: Eldad Zack Cc: Takashi Iwai , alsa-devel@alsa-project.org, Daniel Mack List-Id: alsa-devel@alsa-project.org Eldad Zack wrote: > Move the vendor ID check to the outside and also propogate > the error code. > - if (... > - search_roland_implicit_fb(subs->dev, altsd->bInterfaceNumber + 1, > - altsd->bAlternateSetting, > - &alts, &ep) >= 0) { > - goto add_sync_ep; > + int err = search_roland_implicit_fb(subs->dev, altsd->bInterfaceNumber + 1, > + altsd->bAlternateSetting, > + &alts, &ep); > + if (err < 0) > + return err; > + > + goto add_sync_ep; The error code change is not a refactoring, but a logic change. In this case, a nonexistent feedback endpoint should not be considered a fatal error. Regards, Clemens