Commit 87eacb68 authored by Rami Rosen's avatar Rami Rosen Committed by Jim Harris
Browse files

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: default avatarRami Rosen <ramirose@gmail.com>
Reviewed-on: https://review.gerrithub.io/425936


Tested-by: default avatarSPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: default avatarBen Walker <benjamin.walker@intel.com>
Reviewed-by: default avatarJim Harris <james.r.harris@intel.com>
Reviewed-by: default avatarShuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
parent bf143942
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -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