]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ak411x: simplify snd_ak4113_create() a bit
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 23 Mar 2015 09:34:46 +0000 (12:34 +0300)
committerTakashi Iwai <tiwai@suse.de>
Mon, 23 Mar 2015 12:58:59 +0000 (13:58 +0100)
commit7f97f370658f1e419ede2ba00e7931c5b285ceb2
treeb37310e6b9f930617833c2cca409b1165e96f076
parentb4e17bbafeaf281ec32ebaafd07674b554e12bcd
ALSA: ak411x: simplify snd_ak4113_create() a bit

"err" is always a negative error code here, so there is no point in
checking.  Removing the check silences a static checker warning and
makes the code a bit more clear.  Also we don't need to initialize "err".

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/i2c/other/ak4113.c