Commit 67f4fb02 authored by Corey Minyard's avatar Corey Minyard

ipmi_si: remove ipmi_smi_alloc() function

It's only used in one place now, so it's overkill.
Signed-off-by: default avatarCorey Minyard <cminyard@mvista.com>
parent 58e27635
...@@ -1302,15 +1302,6 @@ int ipmi_std_irq_setup(struct si_sm_io *io) ...@@ -1302,15 +1302,6 @@ int ipmi_std_irq_setup(struct si_sm_io *io)
return rv; return rv;
} }
static struct smi_info *smi_info_alloc(void)
{
struct smi_info *info = kzalloc(sizeof(*info), GFP_KERNEL);
if (info)
spin_lock_init(&info->si_lock);
return info;
}
static int wait_for_msg_done(struct smi_info *smi_info) static int wait_for_msg_done(struct smi_info *smi_info)
{ {
enum si_sm_result smi_result; enum si_sm_result smi_result;
...@@ -1902,9 +1893,10 @@ int ipmi_si_add_smi(struct si_sm_io *io) ...@@ -1902,9 +1893,10 @@ int ipmi_si_add_smi(struct si_sm_io *io)
} }
} }
new_smi = smi_info_alloc(); new_smi = kzalloc(sizeof(*new_smi), GFP_KERNEL);
if (!new_smi) if (!new_smi)
return -ENOMEM; return -ENOMEM;
spin_lock_init(&new_smi->si_lock);
new_smi->io = *io; new_smi->io = *io;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment