Skip to content

Commit 91eb7ec

Browse files
committed
ipmi:ssif: Remove unnecessary indention
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>
1 parent 93b5d21 commit 91eb7ec

1 file changed

Lines changed: 12 additions & 16 deletions

File tree

drivers/char/ipmi/ipmi_ssif.c

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1658,6 +1658,7 @@ static int ssif_probe(struct i2c_client *client)
16581658
int len = 0;
16591659
int i;
16601660
u8 slave_addr = 0;
1661+
unsigned int thread_num;
16611662
struct ssif_addr_info *addr_info = NULL;
16621663

16631664
mutex_lock(&ssif_infos_mutex);
@@ -1876,22 +1877,17 @@ static int ssif_probe(struct i2c_client *client)
18761877
ssif_info->handlers.request_events = request_events;
18771878
ssif_info->handlers.set_need_watch = ssif_set_need_watch;
18781879

1879-
{
1880-
unsigned int thread_num;
1881-
1882-
thread_num = ((i2c_adapter_id(ssif_info->client->adapter)
1883-
<< 8) |
1884-
ssif_info->client->addr);
1885-
init_completion(&ssif_info->wake_thread);
1886-
ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info,
1887-
"kssif%4.4x", thread_num);
1888-
if (IS_ERR(ssif_info->thread)) {
1889-
rv = PTR_ERR(ssif_info->thread);
1890-
dev_notice(&ssif_info->client->dev,
1891-
"Could not start kernel thread: error %d\n",
1892-
rv);
1893-
goto out;
1894-
}
1880+
thread_num = ((i2c_adapter_id(ssif_info->client->adapter) << 8) |
1881+
ssif_info->client->addr);
1882+
init_completion(&ssif_info->wake_thread);
1883+
ssif_info->thread = kthread_run(ipmi_ssif_thread, ssif_info,
1884+
"kssif%4.4x", thread_num);
1885+
if (IS_ERR(ssif_info->thread)) {
1886+
rv = PTR_ERR(ssif_info->thread);
1887+
dev_notice(&ssif_info->client->dev,
1888+
"Could not start kernel thread: error %d\n",
1889+
rv);
1890+
goto out;
18951891
}
18961892

18971893
dev_set_drvdata(&ssif_info->client->dev, ssif_info);

0 commit comments

Comments
 (0)