Skip to content

Commit

Permalink
ipmi_ssif: Get rid of unused intf_num
Browse files Browse the repository at this point in the history
Signed-off-by: Corey Minyard <cminyard@mvista.com>
  • Loading branch information
cminyard committed Apr 18, 2018
1 parent 5ce1a7d commit ebb339a
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions drivers/char/ipmi/ipmi_ssif.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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);
Expand Down

0 comments on commit ebb339a

Please sign in to comment.