summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSakari Ailus <sakari.ailus@linux.intel.com>2017-07-13 17:23:48 +0200
committerMauro Carvalho Chehab <mchehab@s-opensource.com>2017-07-20 21:10:30 +0200
commit10e81bcddea6c77c0b2a1d7c6be59dba5794fa0a (patch)
tree683ccc860bfbb5480ed8e00db2bd215fa5ddf1d5
parentmedia: dib0090: make const array dib0090_tuning_table_cband_7090e_aci static (diff)
downloadlinux-10e81bcddea6c77c0b2a1d7c6be59dba5794fa0a.tar.xz
linux-10e81bcddea6c77c0b2a1d7c6be59dba5794fa0a.zip
media: Remove useless curly braces and parentheses
Simplify the code to satisfy Linux coding style. Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
-rw-r--r--drivers/media/media-device.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/media/media-device.c b/drivers/media/media-device.c
index 760e3e424e23..c51e2e5636f3 100644
--- a/drivers/media/media-device.c
+++ b/drivers/media/media-device.c
@@ -591,9 +591,8 @@ int __must_check media_device_register_entity(struct media_device *mdev,
&entity->pads[i].graph_obj);
/* invoke entity_notify callbacks */
- list_for_each_entry_safe(notify, next, &mdev->entity_notify, list) {
- (notify)->notify(entity, notify->notify_data);
- }
+ list_for_each_entry_safe(notify, next, &mdev->entity_notify, list)
+ notify->notify(entity, notify->notify_data);
if (mdev->entity_internal_idx_max
>= mdev->pm_count_walk.ent_enum.idx_max) {