Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1566142

[PATCH 3/3 linux-next] udf: remove else after return in udf_ioctl()

From Fabian Frederick <fabf@skynet.be>
Newsgroups linux.kernel
Subject [PATCH 3/3 linux-next] udf: remove else after return in udf_ioctl()
Date 2017-01-24 22:00 +0100
Message-ID <t3gm7-DC-39@gated-at.bofh.it> (permalink)
References <t3gm6-DC-23@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


else after return is not needed.

Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
 fs/udf/file.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fs/udf/file.c b/fs/udf/file.c
index 00931fa..a1fec1b 100644
--- a/fs/udf/file.c
+++ b/fs/udf/file.c
@@ -194,8 +194,7 @@ long udf_ioctl(struct file *filp, unsigned int cmd, unsigned long arg)
 		if (copy_to_user((char __user *)arg,
 				 UDF_SB(inode->i_sb)->s_volume_ident, 32))
 			return -EFAULT;
-		else
-			return 0;
+		return 0;
 	case UDF_RELOCATE_BLOCKS:
 		if (!capable(CAP_SYS_ADMIN))
 			return -EPERM;
-- 
2.9.3

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 1/3 linux-next] udf: fix ioctl errors Fabian Frederick <fabf@skynet.be> - 2017-01-24 22:00 +0100
  [PATCH 3/3 linux-next] udf: remove else after return in udf_ioctl() Fabian Frederick <fabf@skynet.be> - 2017-01-24 22:00 +0100

csiph-web