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>
This commit is contained in:
Sakari Ailus 2017-07-13 11:23:48 -04:00 committed by Mauro Carvalho Chehab
parent 6e4e4447d4
commit 10e81bcdde
1 changed files with 2 additions and 3 deletions

View File

@ -591,9 +591,8 @@ int __must_check media_device_register_entity(struct media_device *mdev,
&entity->pads[i].graph_obj); &entity->pads[i].graph_obj);
/* invoke entity_notify callbacks */ /* invoke entity_notify callbacks */
list_for_each_entry_safe(notify, next, &mdev->entity_notify, list) { list_for_each_entry_safe(notify, next, &mdev->entity_notify, list)
(notify)->notify(entity, notify->notify_data); notify->notify(entity, notify->notify_data);
}
if (mdev->entity_internal_idx_max if (mdev->entity_internal_idx_max
>= mdev->pm_count_walk.ent_enum.idx_max) { >= mdev->pm_count_walk.ent_enum.idx_max) {