mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-16 04:21:09 -04:00
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>
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user