]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ipmi:ssif: Remove unnecessary indention
authorCorey Minyard <corey@minyard.net>
Mon, 13 Apr 2026 12:09:15 +0000 (07:09 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Jun 2026 11:42:38 +0000 (13:42 +0200)
commit 91eb7ec7261254b6875909df767185838598e21e upstream.

A section was in {} that didn't need to be, move the variable
definition to the top and set th eindentino properly.

Signed-off-by: Corey Minyard <corey@minyard.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/ipmi/ipmi_ssif.c

index 9d8872cbc43e1062371b9fe63ab1d754240d7fac..b237ce42a51f661cc8791d819f4030ba340e9646 100644 (file)
@@ -1681,6 +1681,7 @@ static int ssif_probe(struct i2c_client *client)
        int               len = 0;
        int               i;
        u8                slave_addr = 0;
+       unsigned int      thread_num;
        struct ssif_addr_info *addr_info = NULL;
 
        mutex_lock(&ssif_infos_mutex);
@@ -1899,22 +1900,17 @@ static int ssif_probe(struct i2c_client *client)
        ssif_info->handlers.request_events = request_events;
        ssif_info->handlers.set_need_watch = ssif_set_need_watch;
 
-       {
-               unsigned int thread_num;
-
-               thread_num = ((i2c_adapter_id(ssif_info->client->adapter)
-                              << 8) |
-                             ssif_info->client->addr);
-               init_completion(&ssif_info->wake_thread);
-               ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info,
-                                              "kssif%4.4x", thread_num);
-               if (IS_ERR(ssif_info->thread)) {
-                       rv = PTR_ERR(ssif_info->thread);
-                       dev_notice(&ssif_info->client->dev,
-                                  "Could not start kernel thread: error %d\n",
-                                  rv);
-                       goto out;
-               }
+       thread_num = ((i2c_adapter_id(ssif_info->client->adapter) << 8) |
+                     ssif_info->client->addr);
+       init_completion(&ssif_info->wake_thread);
+       ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info,
+                                       "kssif%4.4x", thread_num);
+       if (IS_ERR(ssif_info->thread)) {
+               rv = PTR_ERR(ssif_info->thread);
+               dev_notice(&ssif_info->client->dev,
+                          "Could not start kernel thread: error %d\n",
+                          rv);
+               goto out;
        }
 
        dev_set_drvdata(&ssif_info->client->dev, ssif_info);