media: Remove useless curly braces and parentheses
authorSakari Ailus <sakari.ailus@linux.intel.com>
Thu, 13 Jul 2017 15:23:48 +0000 (11:23 -0400)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Thu, 20 Jul 2017 19:10:30 +0000 (15:10 -0400)
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>
drivers/media/media-device.c

index 760e3e424e23cc0357e5b316a0a66c01b9063dd7..c51e2e5636f3d006cf99c2485debb4d1f2eff93d 100644 (file)
@@ -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) {