ionic: init reconfig err to 0
authorShannon Nelson <snelson@pensando.io>
Tue, 27 Jul 2021 17:43:28 +0000 (10:43 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 27 Jul 2021 19:15:21 +0000 (20:15 +0100)
commite7f52aa44380ea657f0977ded63eee091f8fa123
treefb4e479ce0fdc2d18687215fb1b552408d09809b
parent73d618bb7e1998f10735e216578d8f439a60d50c
ionic: init reconfig err to 0

Initialize err to 0 instead of ENOMEM, and specifically set
err to ENOMEM in the devm_kcalloc() failure cases.

Also, add an error message to the end of reconfig.

Signed-off-by: Shannon Nelson <snelson@pensando.io>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_lif.c