mirror of
https://github.com/torvalds/linux.git
synced 2026-09-25 21:21:09 -04:00
V4L/DVB (9151): dsbr100: Add returns and fix codingstyle for vidioc_s_ctrl
Added return -EBUSY and fixed codingstyle issue Signed-off-by: Alexey Klimov <[email protected]> Signed-off-by: Douglas Schilling Landgraf <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
committed by
Mauro Carvalho Chehab
parent
adeeac3b79
commit
90b698dd47
@@ -360,11 +360,15 @@ static int vidioc_s_ctrl(struct file *file, void *priv,
|
||||
switch (ctrl->id) {
|
||||
case V4L2_CID_AUDIO_MUTE:
|
||||
if (ctrl->value) {
|
||||
if (dsbr100_stop(radio)==-1)
|
||||
if (dsbr100_stop(radio) == -1) {
|
||||
warn("Radio did not respond properly");
|
||||
return -EBUSY;
|
||||
}
|
||||
} else {
|
||||
if (dsbr100_start(radio)==-1)
|
||||
if (dsbr100_start(radio) == -1) {
|
||||
warn("Radio did not respond properly");
|
||||
return -EBUSY;
|
||||
}
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user