Re: [PATCH v2] hdlcdrv: replace unnecessary assertion in hdlcdrv_register

From: David Miller
Date: Thu Dec 19 2019 - 20:34:35 EST


From: Aditya Pakki <pakki001@xxxxxxx>
Date: Tue, 17 Dec 2019 15:06:19 -0600

> In hdlcdrv_register, failure to register the driver causes a crash.
> The three callers of hdlcdrv_register all pass valid pointers and
> do not fail. The patch eliminates the unnecessary BUG_ON assertion.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>

Applied to net-next.