i40iw: Set maj_err and min_err in i40iw_sc_cqp_create
authorShiraz Saleem <shiraz.saleem@intel.com>
Wed, 18 Jan 2017 17:48:29 +0000 (11:48 -0600)
committerDoug Ledford <dledford@redhat.com>
Tue, 24 Jan 2017 21:20:37 +0000 (16:20 -0500)
commit3f9fade5e77da67f618ac766ce1a6ded1679fb1a
tree78cc8eb3e681b1cadc61451dcf67dc5e746adefe
parent564649b4ea862588be41da4ae2b96b41208b57be
i40iw: Set maj_err and min_err in i40iw_sc_cqp_create

Set maj_err and min_err in i40iw_sc_cqp_create so that it
returns correct values for all return cases. This also
addresses an uninitialized variable warning for maj_err and
min_err in i40iw_create_cqp.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Reported-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
Reviewed-by: Yuval Shaia <yuval.shaia@oracle.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_ctrl.c