hdlcdrv: replace unnecessary assertion in hdlcdrv_register
authorAditya Pakki <pakki001@umn.edu>
Tue, 17 Dec 2019 21:06:19 +0000 (15:06 -0600)
committerDavid S. Miller <davem@davemloft.net>
Fri, 20 Dec 2019 01:34:20 +0000 (17:34 -0800)
commita886ca6fcfffd337482352f383c1002c72786b17
tree7f01c512f6e362067949365f3417c145507034dc
parent6791c102602b428b729890f6a38a319dfe225aba
hdlcdrv: replace unnecessary assertion in hdlcdrv_register

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@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/hamradio/hdlcdrv.c