Staging: sbe-2t3e3: fix coding style issues in netdev.c
This patch fixes a POINTER_LOCATION error(changed foo* bar to foo *bar) and an ASSIGN_IN_IF error(moved assignment out of if condition). Signed-off-by: Pranav Ravichandran <me@onloop.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Родитель
ce833d36c6
Коммит
1917e7f916
|
@ -134,7 +134,8 @@ int setup_device(struct net_device *dev, struct channel *sc)
|
||||||
dev->tx_queue_len = 100;
|
dev->tx_queue_len = 100;
|
||||||
hdlc->xmit = t3e3_if_start_xmit;
|
hdlc->xmit = t3e3_if_start_xmit;
|
||||||
hdlc->attach = t3e3_attach;
|
hdlc->attach = t3e3_attach;
|
||||||
if ((retval = register_hdlc_device(dev))) {
|
retval = register_hdlc_device(dev);
|
||||||
|
if (retval) {
|
||||||
dev_err(&sc->pdev->dev, "error registering HDLC device\n");
|
dev_err(&sc->pdev->dev, "error registering HDLC device\n");
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче