Re: [PATCH v2] rtl8712: add a check for the status of register_netdev

2019-01-02 Thread Dan Carpenter
On Tue, Dec 25, 2018 at 08:39:53PM -0600, Kangjie Lu wrote: > register_netdev() may fail, so let's check its return value, and if it > fails, issue an error message. > > Signed-off-by: Kangjie Lu > --- > drivers/staging/rtl8712/hal_init.c | 5 +++-- > 1 file changed, 3 insertions(+), 2

[PATCH v2] rtl8712: add a check for the status of register_netdev

2018-12-25 Thread Kangjie Lu
register_netdev() may fail, so let's check its return value, and if it fails, issue an error message. Signed-off-by: Kangjie Lu --- drivers/staging/rtl8712/hal_init.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/staging/rtl8712/hal_init.c