OPP: Fix formatting of if/else block
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 12 Oct 2023 09:09:26 +0000 (14:39 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Mon, 16 Oct 2023 10:35:51 +0000 (16:05 +0530)
Add {} to both if else blocks or none.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/opp/of.c

index ae5c405bbf9a612c7213b86d5c557ba982d9da93..85e2af3d6a49a9c246cfb8abbf9fc6611884b4c8 100644 (file)
@@ -208,9 +208,9 @@ static void _opp_table_alloc_required_tables(struct opp_table *opp_table,
                mutex_lock(&opp_table_lock);
                list_add(&opp_table->lazy, &lazy_opp_tables);
                mutex_unlock(&opp_table_lock);
-       }
-       else
+       } else {
                _update_set_required_opps(opp_table);
+       }
 
        goto put_np;