diff options
-rw-r--r-- | drivers/char/ipmi/ipmi_si_intf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/ipmi/ipmi_si_intf.c b/drivers/char/ipmi/ipmi_si_intf.c index e58ea4cd55ce..2438fdf889b4 100644 --- a/drivers/char/ipmi/ipmi_si_intf.c +++ b/drivers/char/ipmi/ipmi_si_intf.c | |||
@@ -2863,7 +2863,7 @@ static int try_smi_init(struct smi_info *new_smi) | |||
2863 | */ | 2863 | */ |
2864 | new_smi->pdev = platform_device_alloc("ipmi_si", | 2864 | new_smi->pdev = platform_device_alloc("ipmi_si", |
2865 | new_smi->intf_num); | 2865 | new_smi->intf_num); |
2866 | if (rv) { | 2866 | if (!new_smi->pdev) { |
2867 | printk(KERN_ERR | 2867 | printk(KERN_ERR |
2868 | "ipmi_si_intf:" | 2868 | "ipmi_si_intf:" |
2869 | " Unable to allocate platform device\n"); | 2869 | " Unable to allocate platform device\n"); |