Re: [PATCH] ALSA: usb-audio: Don't store returned value and check for errors

2021-03-26 Thread Takashi Iwai
On Thu, 25 Mar 2021 09:36:41 +0100, Muhammad Usama Anjum wrote: > > The returned value by create_autodetect_quirk isn't being used other > than in the success check on next line. Remove the return value > assignement. Check for error values instead of success check. > > Signed-off-by: Muhammad Us

[PATCH] ALSA: usb-audio: Don't store returned value and check for errors

2021-03-25 Thread Muhammad Usama Anjum
The returned value by create_autodetect_quirk isn't being used other than in the success check on next line. Remove the return value assignement. Check for error values instead of success check. Signed-off-by: Muhammad Usama Anjum --- sound/usb/quirks.c | 6 +++--- 1 file changed, 3 insertions(+