]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ipmi:ssif: Remove unnecessary indention
authorCorey Minyard <corey@minyard.net>
Mon, 13 Apr 2026 12:09:15 +0000 (07:09 -0500)
committerCorey Minyard <corey@minyard.net>
Mon, 13 Apr 2026 12:09:15 +0000 (07:09 -0500)
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>
drivers/char/ipmi/ipmi_ssif.c

index 37a5cb5c53f1fc6fca8b0d8d82b0d05bef4fe70a..ce918fe987c6313b42c670d041a01d2236562103 100644 (file)
@@ -1658,6 +1658,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);
@@ -1876,22 +1877,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);