From: Al Viro Date: Sun, 22 Sep 2013 18:33:32 +0000 (-0400) Subject: dmxdev: get rid of pointless clearing ->f_op X-Git-Tag: upstream/snapshot3+hdmi~3996^2~85 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=79b185dd1a40cf360c9d88ada7ed21f79d818613;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git dmxdev: get rid of pointless clearing ->f_op nobody else will see that struct file after return from ->release() anyway; just leave ->f_op as is and let __fput() do that fops_put(). Signed-off-by: Al Viro --- diff --git a/drivers/media/dvb-core/dmxdev.c b/drivers/media/dvb-core/dmxdev.c index 0b4616b..c0363f1 100644 --- a/drivers/media/dvb-core/dmxdev.c +++ b/drivers/media/dvb-core/dmxdev.c @@ -206,8 +206,6 @@ static int dvb_dvr_release(struct inode *inode, struct file *file) /* TODO */ dvbdev->users--; if (dvbdev->users == 1 && dmxdev->exit == 1) { - fops_put(file->f_op); - file->f_op = NULL; mutex_unlock(&dmxdev->mutex); wake_up(&dvbdev->wait_queue); } else @@ -1120,8 +1118,6 @@ static int dvb_demux_release(struct inode *inode, struct file *file) mutex_lock(&dmxdev->mutex); dmxdev->dvbdev->users--; if(dmxdev->dvbdev->users==1 && dmxdev->exit==1) { - fops_put(file->f_op); - file->f_op = NULL; mutex_unlock(&dmxdev->mutex); wake_up(&dmxdev->dvbdev->wait_queue); } else