OSDN Git Service

staging: media: davinci_vpfe: Fix multiple line dereference
authorDaniela Mormocea <daniela.mormocea@gmail.com>
Thu, 7 Mar 2019 11:42:09 +0000 (13:42 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 18 Mar 2019 06:05:21 +0000 (07:05 +0100)
Fix multiple line dereference to improve readability
and avoid checkpatch warning

Signed-off-by: Daniela Mormocea <daniela.mormocea@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/davinci_vpfe/dm365_ipipeif.c

index 277d9af..5a44c0c 100644 (file)
@@ -920,8 +920,7 @@ ipipeif_link_setup(struct media_entity *entity, const struct media_pad *local,
                if (remote->entity == &vpfe->vpfe_ipipe.subdev.entity)
                        /* connencted to ipipe */
                        ipipeif->output = IPIPEIF_OUTPUT_IPIPE;
-               else if (remote->entity == &vpfe->vpfe_resizer.
-                       crop_resizer.subdev.entity)
+               else if (remote->entity == &vpfe->vpfe_resizer.crop_resizer.subdev.entity)
                        /* connected to resizer */
                        ipipeif->output = IPIPEIF_OUTPUT_RESIZER;
                else