Commit ba5d47cf authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by David S. Miller

net/irda: sh_sir: fixup err return value on sh_sir_open

On sh_sir_open function, there was a possibility that
err variable didn't have value even though it is return value.
This patch modify it.
Signed-off-by: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 842509b8
...@@ -645,8 +645,10 @@ static int sh_sir_open(struct net_device *ndev) ...@@ -645,8 +645,10 @@ static int sh_sir_open(struct net_device *ndev)
sh_sir_set_baudrate(self, 9600); sh_sir_set_baudrate(self, 9600);
self->irlap = irlap_open(ndev, &self->qos, DRIVER_NAME); self->irlap = irlap_open(ndev, &self->qos, DRIVER_NAME);
if (!self->irlap) if (!self->irlap) {
err = -ENODEV;
goto open_err; goto open_err;
}
/* /*
* Now enable the interrupt then start the queue * Now enable the interrupt then start the queue
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment