diff options
author | Corey Minyard <cminyard@mvista.com> | 2018-04-11 21:22:34 +0300 |
---|---|---|
committer | Corey Minyard <cminyard@mvista.com> | 2018-04-18 18:23:07 +0300 |
commit | ebb339a597b5f06cea5ea9d984c56bc4d2fa11f6 (patch) | |
tree | ce70d1d62f8387ad6e3e6226a69fd25453f8b635 /drivers/char/ipmi | |
parent | 5ce1a7dc806efb2181e93d4a088b281c4cff4eaa (diff) | |
download | linux-ebb339a597b5f06cea5ea9d984c56bc4d2fa11f6.tar.xz |
ipmi_ssif: Get rid of unused intf_num
Signed-off-by: Corey Minyard <cminyard@mvista.com>
Diffstat (limited to 'drivers/char/ipmi')
-rw-r--r-- | drivers/char/ipmi/ipmi_ssif.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/char/ipmi/ipmi_ssif.c b/drivers/char/ipmi/ipmi_ssif.c index 17cae7a41b70..4cbaa5ebf897 100644 --- a/drivers/char/ipmi/ipmi_ssif.c +++ b/drivers/char/ipmi/ipmi_ssif.c @@ -194,7 +194,6 @@ typedef void (*ssif_i2c_done)(struct ssif_info *ssif_info, int result, struct ssif_info { struct ipmi_smi *intf; - int intf_num; spinlock_t lock; struct ipmi_smi_msg *waiting_msg; struct ipmi_smi_msg *curr_msg; @@ -290,8 +289,6 @@ struct ssif_info { static bool initialized; -static atomic_t next_intf = ATOMIC_INIT(0); - static void return_hosed_msg(struct ssif_info *ssif_info, struct ipmi_smi_msg *msg); static void start_next_msg(struct ssif_info *ssif_info, unsigned long *flags); @@ -1663,8 +1660,6 @@ static int ssif_probe(struct i2c_client *client, const struct i2c_device_id *id) } found: - ssif_info->intf_num = atomic_inc_return(&next_intf); - if (ssif_dbg_probe) { pr_info("ssif_probe: i2c_probe found device at i2c address %x\n", client->addr); |