ibmvnic: fix empty firmware version and errors cleanup
authorDesnes Augusto Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Mon, 5 Feb 2018 16:33:55 +0000 (14:33 -0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Feb 2018 02:24:01 +0000 (21:24 -0500)
commit21a2545bbea02ce39e91d47c9e3ef0ccd0fb0b14
treee4c72e7fcb484ea3a2a270124e9fd1b65ea2f930
parent4a31a6b19f9ddf498c81f5c9b089742b7472a6f8
ibmvnic: fix empty firmware version and errors cleanup

This patch makes sure that the firmware version is never NULL. Moreover,
it also performs some cleanup on the error messages.

Fixes: a107311d7fdf ("ibmvnic: fix firmware version when no firmware level
has been provided by the VIOS server")
Signed-off-by: Desnes A. Nunes do Rosario <desnesn@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ibm/ibmvnic.c