Skip to content

Commit 564649b

Browse files
rleondledford
authored andcommitted
IB/qib: Remove empty function
Commit f062671 ("RDMA: Update workqueue usage") removed content of qib_qsfp_deinit(...) and left it empty. This patch deletes all leftovers of that function. Signed-off-by: Leon Romanovsky <[email protected]> Reviewed-by: Yuval Shaia <[email protected]> Signed-off-by: Doug Ledford <[email protected]>
1 parent 21d6454 commit 564649b

File tree

3 files changed

+0
-12
lines changed

3 files changed

+0
-12
lines changed

drivers/infiniband/hw/qib/qib_iba7322.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2893,7 +2893,6 @@ static void qib_setup_7322_cleanup(struct qib_devdata *dd)
28932893
dd->cspec->gpio_mask &= ~mask;
28942894
qib_write_kreg(dd, kr_gpio_mask, dd->cspec->gpio_mask);
28952895
spin_unlock_irqrestore(&dd->cspec->gpio_lock, flags);
2896-
qib_qsfp_deinit(&dd->pport[i].cpspec->qsfp_data);
28972896
}
28982897
}
28992898
}

drivers/infiniband/hw/qib/qib_qsfp.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -485,16 +485,6 @@ void qib_qsfp_init(struct qib_qsfp_data *qd,
485485
dd->f_gpio_mod(dd, mask, mask, mask);
486486
}
487487

488-
void qib_qsfp_deinit(struct qib_qsfp_data *qd)
489-
{
490-
/*
491-
* There is nothing to do here for now. our work is scheduled
492-
* with queue_work(), and flush_workqueue() from remove_one
493-
* will block until all work setup with queue_work()
494-
* completes.
495-
*/
496-
}
497-
498488
int qib_qsfp_dump(struct qib_pportdata *ppd, char *buf, int len)
499489
{
500490
struct qib_qsfp_cache cd;

drivers/infiniband/hw/qib/qib_qsfp.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,4 +186,3 @@ extern int qib_refresh_qsfp_cache(struct qib_pportdata *ppd,
186186
extern int qib_qsfp_mod_present(struct qib_pportdata *ppd);
187187
extern void qib_qsfp_init(struct qib_qsfp_data *qd,
188188
void (*fevent)(struct work_struct *));
189-
extern void qib_qsfp_deinit(struct qib_qsfp_data *qd);

0 commit comments

Comments
 (0)