diff options
author | Henry Orosco | 2016-11-10 04:42:26 +0100 |
---|---|---|
committer | Doug Ledford | 2016-12-05 22:09:38 +0100 |
commit | dfd9c43b3ce97e1b66a6dc1d9dcc95db9a27cc4b (patch) | |
tree | fd2fe6ec57bdbf5459388e4116fd198b489da5f8 /drivers/infiniband/hw/i40iw/i40iw_ctrl.c | |
parent | i40iw: Use runtime check for IS_ENABLED(CONFIG_IPV6) (diff) | |
download | kernel-qcow2-linux-dfd9c43b3ce97e1b66a6dc1d9dcc95db9a27cc4b.tar.gz kernel-qcow2-linux-dfd9c43b3ce97e1b66a6dc1d9dcc95db9a27cc4b.tar.xz kernel-qcow2-linux-dfd9c43b3ce97e1b66a6dc1d9dcc95db9a27cc4b.zip |
i40iw: Remove check on return from device_init_pestat()
Remove unnecessary check for return code from
device_init_pestat() and change func to void.
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Henry Orosco <henry.orosco@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'drivers/infiniband/hw/i40iw/i40iw_ctrl.c')
-rw-r--r-- | drivers/infiniband/hw/i40iw/i40iw_ctrl.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c index 8417452a7a9c..5dde358349ee 100644 --- a/drivers/infiniband/hw/i40iw/i40iw_ctrl.c +++ b/drivers/infiniband/hw/i40iw/i40iw_ctrl.c @@ -4853,10 +4853,9 @@ static const struct i40iw_device_pestat_ops iw_device_pestat_ops = { * i40iw_device_init_pestat - Initialize the pestat structure * @dev: pestat struct */ -enum i40iw_status_code i40iw_device_init_pestat(struct i40iw_dev_pestat *devstat) +void i40iw_device_init_pestat(struct i40iw_dev_pestat *devstat) { devstat->ops = iw_device_pestat_ops; - return 0; } /** @@ -4881,12 +4880,7 @@ enum i40iw_status_code i40iw_device_init(struct i40iw_sc_dev *dev, dev->debug_mask = info->debug_mask; - ret_code = i40iw_device_init_pestat(&dev->dev_pestat); - if (ret_code) { - i40iw_debug(dev, I40IW_DEBUG_DEV, - "%s: i40iw_device_init_pestat failed\n", __func__); - return ret_code; - } + i40iw_device_init_pestat(&dev->dev_pestat); dev->hmc_fn_id = info->hmc_fn_id; i40iw_fill_qos_list(info->l2params.qs_handle_list); for (i = 0; i < I40IW_MAX_USER_PRIORITY; i++) { |