mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-12-28 16:56:26 +00:00
media: firewire: firedtv-avc.c: replace BUG with proper, error return
This resolves this smatch error: drivers/media/firewire/firedtv-avc.c:602 avc_tuner_dsd() error: uninitialized symbol 'pos'. Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
This commit is contained in:
parent
935ae6f8ba
commit
59353d7051
@ -597,7 +597,8 @@ int avc_tuner_dsd(struct firedtv *fdtv,
|
||||
case FIREDTV_DVB_C: pos = avc_tuner_dsd_dvb_c(fdtv, p); break;
|
||||
case FIREDTV_DVB_T: pos = avc_tuner_dsd_dvb_t(fdtv, p); break;
|
||||
default:
|
||||
BUG();
|
||||
ret = -EIO;
|
||||
goto unlock;
|
||||
}
|
||||
pad_operands(c, pos);
|
||||
|
||||
@ -612,6 +613,7 @@ int avc_tuner_dsd(struct firedtv *fdtv,
|
||||
if (status)
|
||||
*status = r->operand[2];
|
||||
#endif
|
||||
unlock:
|
||||
mutex_unlock(&fdtv->avc_mutex);
|
||||
|
||||
if (ret == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user