This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: adv7180: Fix cppcheck errors
Author:  Bhavin Sharma <bhavin.sha...@siliconsignals.io>
Date:    Tue Jan 2 19:36:40 2024 +0530

ERROR: else should follow close brace '}'

Signed-off-by: Bhavin Sharma <bhavin.sha...@siliconsignals.io>
Signed-off-by: Hans Verkuil <hverkuil-ci...@xs4all.nl>

 drivers/media/i2c/adv7180.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/i2c/adv7180.c b/drivers/media/i2c/adv7180.c
index 409b9a37f018..4829cbe32419 100644
--- a/drivers/media/i2c/adv7180.c
+++ b/drivers/media/i2c/adv7180.c
@@ -1057,11 +1057,11 @@ static int adv7182_init(struct adv7180_state *state)
                                              
ADV7180_REG_EXTENDED_OUTPUT_CONTROL,
                                              0x17);
                        }
-               }
-               else
+               } else {
                        adv7180_write(state,
                                      ADV7180_REG_EXTENDED_OUTPUT_CONTROL,
                                      0x07);
+               }
                adv7180_write(state, ADV7180_REG_OUTPUT_CONTROL, 0x0c);
                adv7180_write(state, ADV7180_REG_CTRL_2, 0x40);
        }

Reply via email to