mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 21:57:43 +00:00
media: radio-si476x: Remove the unneeded result variable
Return the value v4l2_fh_release() directly instead of storing it in another redundant variable. Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
This commit is contained in:
parent
5cd5f13444
commit
bf4ed9e328
1 changed files with 1 additions and 4 deletions
|
@ -1072,7 +1072,6 @@ static int si476x_radio_fops_open(struct file *file)
|
|||
|
||||
static int si476x_radio_fops_release(struct file *file)
|
||||
{
|
||||
int err;
|
||||
struct si476x_radio *radio = video_drvdata(file);
|
||||
|
||||
if (v4l2_fh_is_singular_file(file) &&
|
||||
|
@ -1080,9 +1079,7 @@ static int si476x_radio_fops_release(struct file *file)
|
|||
si476x_core_set_power_state(radio->core,
|
||||
SI476X_POWER_DOWN);
|
||||
|
||||
err = v4l2_fh_release(file);
|
||||
|
||||
return err;
|
||||
return v4l2_fh_release(file);
|
||||
}
|
||||
|
||||
static ssize_t si476x_radio_fops_read(struct file *file, char __user *buf,
|
||||
|
|
Loading…
Reference in a new issue