Skip to content

Commit f5f2c66

Browse files
cminyardopsiff
authored andcommitted
ipmi:ssif: Remove unnecessary indention
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> (cherry picked from commit 52a7c9a2823da0d06b1a659b1bea1290a79a5044) Signed-off-by: Wentao Guan <guanwentao@uniontech.com>
1 parent d9ea8d4 commit f5f2c66

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
@@ -1662,6 +1662,7 @@ static int ssif_probe(struct i2c_client *client)
16621662
int len = 0;
16631663
int i;
16641664
u8 slave_addr = 0;
1665+
unsigned int thread_num;
16651666
struct ssif_addr_info *addr_info = NULL;
16661667

16671668
mutex_lock(&ssif_infos_mutex);
@@ -1880,22 +1881,17 @@ static int ssif_probe(struct i2c_client *client)
18801881
ssif_info->handlers.request_events = request_events;
18811882
ssif_info->handlers.set_need_watch = ssif_set_need_watch;
18821883

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

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

0 commit comments

Comments
 (0)