]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: HDA: Dont check return for snd_hdac_chip_readl
authorJeeja KP <jeeja.kp@intel.com>
Tue, 4 Aug 2015 03:58:39 +0000 (09:28 +0530)
committerTakashi Iwai <tiwai@suse.de>
Tue, 4 Aug 2015 05:04:46 +0000 (07:04 +0200)
commitb68e679f75c1da626b723ff5e52ec611d2ce2830
treec5dd71eea77daf61d8103e8131a57c80227867d9
parentdec8b7576b8c9ec378affffd1010703f90887f2c
ALSA: HDA: Dont check return for snd_hdac_chip_readl

The snd_hdac_chip_readl return can never be less than zeros,
so no point in checking for the return value

This fixes following static checker warnings in
snd_hdac_ext_bus_parse_capabilities

       sound/hda/ext/hdac_ext_controller.c:47
 snd_hdac_ext_bus_parse_capabilities()
       warn: unsigned 'offset' is never less than zero.

       sound/hda/ext/hdac_ext_controller.c:54
 snd_hdac_ext_bus_parse_capabilities()
       warn: unsigned 'cur_cap' is never less than zero.

Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/hda/ext/hdac_ext_controller.c