Commit e90bbacd authored by devendra sharma's avatar devendra sharma Committed by Mauro Carvalho Chehab

[media] media: dvb: dmx: fixed coding style issues of spacing

Fixed coding style issues of spacing
Signed-off-by: default avatarDevendra Sharma <devendra.sharma9091@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 504fc028
...@@ -147,6 +147,7 @@ static int dvb_dvr_open(struct inode *inode, struct file *file) ...@@ -147,6 +147,7 @@ static int dvb_dvr_open(struct inode *inode, struct file *file)
if ((file->f_flags & O_ACCMODE) == O_RDONLY) { if ((file->f_flags & O_ACCMODE) == O_RDONLY) {
void *mem; void *mem;
if (!dvbdev->readers) { if (!dvbdev->readers) {
mutex_unlock(&dmxdev->mutex); mutex_unlock(&dmxdev->mutex);
return -EBUSY; return -EBUSY;
...@@ -198,6 +199,7 @@ static int dvb_dvr_release(struct inode *inode, struct file *file) ...@@ -198,6 +199,7 @@ static int dvb_dvr_release(struct inode *inode, struct file *file)
dvbdev->readers++; dvbdev->readers++;
if (dmxdev->dvr_buffer.data) { if (dmxdev->dvr_buffer.data) {
void *mem = dmxdev->dvr_buffer.data; void *mem = dmxdev->dvr_buffer.data;
/*memory barrier*/
mb(); mb();
spin_lock_irq(&dmxdev->lock); spin_lock_irq(&dmxdev->lock);
dmxdev->dvr_buffer.data = NULL; dmxdev->dvr_buffer.data = NULL;
...@@ -872,7 +874,7 @@ static int dvb_dmxdev_pes_filter_set(struct dmxdev *dmxdev, ...@@ -872,7 +874,7 @@ static int dvb_dmxdev_pes_filter_set(struct dmxdev *dmxdev,
dvb_dmxdev_filter_stop(dmxdevfilter); dvb_dmxdev_filter_stop(dmxdevfilter);
dvb_dmxdev_filter_reset(dmxdevfilter); dvb_dmxdev_filter_reset(dmxdevfilter);
if ((unsigned)params->pes_type > DMX_PES_OTHER) if ((unsigned int)params->pes_type > DMX_PES_OTHER)
return -EINVAL; return -EINVAL;
dmxdevfilter->type = DMXDEV_TYPE_PES; dmxdevfilter->type = DMXDEV_TYPE_PES;
...@@ -1121,7 +1123,7 @@ static int dvb_demux_release(struct inode *inode, struct file *file) ...@@ -1121,7 +1123,7 @@ static int dvb_demux_release(struct inode *inode, struct file *file)
mutex_lock(&dmxdev->mutex); mutex_lock(&dmxdev->mutex);
dmxdev->dvbdev->users--; dmxdev->dvbdev->users--;
if(dmxdev->dvbdev->users==1 && dmxdev->exit==1) { if (dmxdev->dvbdev->users == 1 && dmxdev->exit == 1) {
mutex_unlock(&dmxdev->mutex); mutex_unlock(&dmxdev->mutex);
wake_up(&dmxdev->dvbdev->wait_queue); wake_up(&dmxdev->dvbdev->wait_queue);
} else } else
...@@ -1259,14 +1261,14 @@ EXPORT_SYMBOL(dvb_dmxdev_init); ...@@ -1259,14 +1261,14 @@ EXPORT_SYMBOL(dvb_dmxdev_init);
void dvb_dmxdev_release(struct dmxdev *dmxdev) void dvb_dmxdev_release(struct dmxdev *dmxdev)
{ {
dmxdev->exit=1; dmxdev->exit = 1;
if (dmxdev->dvbdev->users > 1) { if (dmxdev->dvbdev->users > 1) {
wait_event(dmxdev->dvbdev->wait_queue, wait_event(dmxdev->dvbdev->wait_queue,
dmxdev->dvbdev->users==1); dmxdev->dvbdev->users == 1);
} }
if (dmxdev->dvr_dvbdev->users > 1) { if (dmxdev->dvr_dvbdev->users > 1) {
wait_event(dmxdev->dvr_dvbdev->wait_queue, wait_event(dmxdev->dvr_dvbdev->wait_queue,
dmxdev->dvr_dvbdev->users==1); dmxdev->dvr_dvbdev->users == 1);
} }
dvb_unregister_device(dmxdev->dvbdev); dvb_unregister_device(dmxdev->dvbdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment