i40iw: Simplify code
authorChristophe Jaillet <christophe.jaillet@wanadoo.fr>
Sun, 16 Jul 2017 11:09:23 +0000 (13:09 +0200)
committerDoug Ledford <dledford@redhat.com>
Fri, 18 Aug 2017 18:01:08 +0000 (14:01 -0400)
commit02654b5ae1a45c0e31060816231086685cfcd841
treef638f4350e49026ff2c67e8cb92ef0fe0b68336b
parent7806def081b2185a488fb31bd1deb4f5a3fe4765
i40iw: Simplify code

Axe a few lines of code and re-use existing error handling path to avoid
code duplication.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Shiraz Saleem <shiraz.saleem@intel.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/i40iw/i40iw_pble.c