ioat: change the return type of ioat_channel_destruct() to be void

The static method ioat_channel_destruct() never fails. This cleanup patch
changes its return type to be void instead of int.

Change-Id: I0db464b6a810eadc3f58550114c4532ca33d03b5
Signed-off-by: Rami Rosen <ramirose@gmail.com>
Reviewed-on: https://review.gerrithub.io/425936
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
This commit is contained in:
Rami Rosen 2018-09-18 16:19:12 +03:00 committed by Jim Harris
parent bf14394205
commit 87eacb6829

View File

@ -350,7 +350,7 @@ ioat_process_channel_events(struct spdk_ioat_chan *ioat)
return 0;
}
static int
static void
ioat_channel_destruct(struct spdk_ioat_chan *ioat)
{
ioat_unmap_pci_bar(ioat);
@ -367,8 +367,6 @@ ioat_channel_destruct(struct spdk_ioat_chan *ioat)
spdk_dma_free((void *)ioat->comp_update);
ioat->comp_update = NULL;
}
return 0;
}
static int