mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-05 00:20:32 +00:00
ionic: remove unnecessary void casts
Minor Code cleanup details. Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Reviewed-by: Leon Romanovsky <leonro@nvidia.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
7bb990097d
commit
896de449f8
4 changed files with 7 additions and 7 deletions
|
@ -121,7 +121,7 @@ static void ionic_vf_dealloc_locked(struct ionic *ionic)
|
|||
|
||||
if (v->stats_pa) {
|
||||
vfc.stats_pa = 0;
|
||||
(void)ionic_set_vf_config(ionic, i, &vfc);
|
||||
ionic_set_vf_config(ionic, i, &vfc);
|
||||
dma_unmap_single(ionic->dev, v->stats_pa,
|
||||
sizeof(v->stats), DMA_FROM_DEVICE);
|
||||
v->stats_pa = 0;
|
||||
|
@ -169,7 +169,7 @@ static int ionic_vf_alloc(struct ionic *ionic, int num_vfs)
|
|||
|
||||
/* ignore failures from older FW, we just won't get stats */
|
||||
vfc.stats_pa = cpu_to_le64(v->stats_pa);
|
||||
(void)ionic_set_vf_config(ionic, i, &vfc);
|
||||
ionic_set_vf_config(ionic, i, &vfc);
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
|
@ -388,7 +388,7 @@ int ionic_adminq_wait(struct ionic_lif *lif, struct ionic_admin_ctx *ctx,
|
|||
break;
|
||||
|
||||
/* force a check of FW status and break out if FW reset */
|
||||
(void)ionic_heartbeat_check(lif->ionic);
|
||||
ionic_heartbeat_check(lif->ionic);
|
||||
if ((test_bit(IONIC_LIF_F_FW_RESET, lif->state) &&
|
||||
!lif->ionic->idev.fw_status_ready) ||
|
||||
test_bit(IONIC_LIF_F_FW_STOPPING, lif->state)) {
|
||||
|
@ -676,7 +676,7 @@ int ionic_port_init(struct ionic *ionic)
|
|||
err = ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
|
||||
|
||||
ionic_dev_cmd_port_state(&ionic->idev, IONIC_PORT_ADMIN_STATE_UP);
|
||||
(void)ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
|
||||
ionic_dev_cmd_wait(ionic, DEVCMD_TIMEOUT);
|
||||
|
||||
mutex_unlock(&ionic->dev_cmd_lock);
|
||||
if (err) {
|
||||
|
|
|
@ -268,7 +268,7 @@ static u64 ionic_hwstamp_read(struct ionic *ionic,
|
|||
u32 tick_high_before, tick_high, tick_low;
|
||||
|
||||
/* read and discard low part to defeat hw staging of high part */
|
||||
(void)ioread32(&ionic->idev.hwstamp_regs->tick_low);
|
||||
ioread32(&ionic->idev.hwstamp_regs->tick_low);
|
||||
|
||||
tick_high_before = ioread32(&ionic->idev.hwstamp_regs->tick_high);
|
||||
|
||||
|
|
|
@ -604,14 +604,14 @@ void ionic_rx_filter_sync(struct ionic_lif *lif)
|
|||
* they can clear room for some new filters
|
||||
*/
|
||||
list_for_each_entry_safe(sync_item, spos, &sync_del_list, list) {
|
||||
(void)ionic_lif_filter_del(lif, &sync_item->f.cmd);
|
||||
ionic_lif_filter_del(lif, &sync_item->f.cmd);
|
||||
|
||||
list_del(&sync_item->list);
|
||||
devm_kfree(dev, sync_item);
|
||||
}
|
||||
|
||||
list_for_each_entry_safe(sync_item, spos, &sync_add_list, list) {
|
||||
(void)ionic_lif_filter_add(lif, &sync_item->f.cmd);
|
||||
ionic_lif_filter_add(lif, &sync_item->f.cmd);
|
||||
|
||||
list_del(&sync_item->list);
|
||||
devm_kfree(dev, sync_item);
|
||||
|
|
Loading…
Reference in a new issue