Revision 5d942ce63c8fd98794a8ba9af559925c8432a052 authored by Jeeja KP on 04 August 2015, 03:58:39 UTC, committed by Takashi Iwai on 04 August 2015, 05:04:46 UTC
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>
1 parent 9b06dc9
History
File Mode Size
Kconfig -rw-r--r-- 1.3 KB
Makefile -rw-r--r-- 343 bytes
acl.c -rw-r--r-- 5.5 KB
acl.h -rw-r--r-- 1.4 KB
balloc.c -rw-r--r-- 44.5 KB
dir.c -rw-r--r-- 17.6 KB
ext2.h -rw-r--r-- 27.5 KB
file.c -rw-r--r-- 3.1 KB
ialloc.c -rw-r--r-- 18.2 KB
inode.c -rw-r--r-- 44.9 KB
ioctl.c -rw-r--r-- 4.4 KB
namei.c -rw-r--r-- 9.8 KB
super.c -rw-r--r-- 42.2 KB
symlink.c -rw-r--r-- 1.1 KB
xattr.c -rw-r--r-- 27.9 KB
xattr.h -rw-r--r-- 3.3 KB
xattr_security.c -rw-r--r-- 1.9 KB
xattr_trusted.c -rw-r--r-- 1.4 KB
xattr_user.c -rw-r--r-- 1.5 KB

back to top