mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
The negative error return from the call to to_sndif_format is being
assigned to an unsigned 8 bit integer and hence the check for a negative
value is always going to be false. Fix this by using ret as the error
return and hence the negative error can be detected and assign
the u8 sndif_format to ret if there is no error.
Detected by CoverityScan, CID#1469385 ("Unsigned compared against 0")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamoccchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
|
||
|---|---|---|
| .. | ||
| Kconfig | ||
| Makefile | ||
| xen_snd_front_alsa.c | ||
| xen_snd_front_alsa.h | ||
| xen_snd_front_cfg.c | ||
| xen_snd_front_cfg.h | ||
| xen_snd_front_evtchnl.c | ||
| xen_snd_front_evtchnl.h | ||
| xen_snd_front_shbuf.c | ||
| xen_snd_front_shbuf.h | ||
| xen_snd_front.c | ||
| xen_snd_front.h | ||