mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-19 02:34:01 +08:00
decnet: dn_dev: Remove an unnecessary label.
Remove the unnecessary label from dn_dev_ioctl() and make its error handling simpler to read. Signed-off-by: Suraj Upadhyay <usuraj35@gmail.com> Signed-off-by: Jakub Kicinski <kuba@kernel.org>
This commit is contained in:
parent
94d9f78f4d
commit
514d09529d
@ -462,7 +462,9 @@ int dn_dev_ioctl(unsigned int cmd, void __user *arg)
|
||||
switch (cmd) {
|
||||
case SIOCGIFADDR:
|
||||
*((__le16 *)sdn->sdn_nodeaddr) = ifa->ifa_local;
|
||||
goto rarok;
|
||||
if (copy_to_user(arg, ifr, DN_IFREQ_SIZE))
|
||||
ret = -EFAULT;
|
||||
break;
|
||||
|
||||
case SIOCSIFADDR:
|
||||
if (!ifa) {
|
||||
@ -485,10 +487,6 @@ done:
|
||||
rtnl_unlock();
|
||||
|
||||
return ret;
|
||||
rarok:
|
||||
if (copy_to_user(arg, ifr, DN_IFREQ_SIZE))
|
||||
ret = -EFAULT;
|
||||
goto done;
|
||||
}
|
||||
|
||||
struct net_device *dn_dev_get_default(void)
|
||||
|
Loading…
Reference in New Issue
Block a user