From: Peng Li Date: Fri, 4 Jun 2021 07:32:11 +0000 (+0800) Subject: net: hdlc_x25: fix the code issue about "if..else.." X-Git-Tag: v5.14-rc1~119^2~336^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=792b070fca8fc945c2be7f9dd965d79c238d81c7;p=thirdparty%2Flinux.git net: hdlc_x25: fix the code issue about "if..else.." According to the chackpatch.pl, else should follow close brace '}'. Signed-off-by: Peng Li Signed-off-by: Guangbin Huang Signed-off-by: David S. Miller --- diff --git a/drivers/net/wan/hdlc_x25.c b/drivers/net/wan/hdlc_x25.c index 4e771f789e10a..bd4fad3e6ff18 100644 --- a/drivers/net/wan/hdlc_x25.c +++ b/drivers/net/wan/hdlc_x25.c @@ -310,8 +310,7 @@ static int x25_ioctl(struct net_device *dev, struct ifreq *ifr) new_settings.t1 = 3; new_settings.t2 = 1; new_settings.n2 = 10; - } - else { + } else { if (copy_from_user(&new_settings, x25_s, size)) return -EFAULT;