Re: [PATCH] staging: rtl8712: check register_netdev() return value
From: Greg KH
Date: Sun Dec 06 2020 - 11:03:06 EST
On Sun, Dec 06, 2020 at 11:59:07PM +0800, shaojie.dong@xxxxxxxxxxxxxxxx wrote:
> From: "shaojie.dong" <shaojie.dong@xxxxxxxxxxxxxxxx>
>
> Function register_netdev() can fail, so we should check it's return value
You just check it, you are not doing anything with it, which is just the
same as not checking this.
Please fix this properly.
thanks,
greg k-h