Skip to content

Commit b80cc4d

Browse files
Chen Nibrauner
authored andcommitted
ipc: mqueue: remove assignment from IS_ERR argument
Remove assignment from IS_ERR() argument. This is detected by coccinelle. Signed-off-by: Chen Ni <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent f378ec4 commit b80cc4d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ipc/mqueue.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -903,7 +903,8 @@ static int do_mq_open(const char __user *u_name, int oflag, umode_t mode,
903903

904904
audit_mq_open(oflag, mode, attr);
905905

906-
if (IS_ERR(name = getname(u_name)))
906+
name = getname(u_name);
907+
if (IS_ERR(name))
907908
return PTR_ERR(name);
908909

909910
fd = get_unused_fd_flags(O_CLOEXEC);

0 commit comments

Comments
 (0)