ipc: mqueue: remove assignment from IS_ERR argument
Remove assignment from IS_ERR() argument. This is detected by coccinelle. Signed-off-by: Chen Ni <nichen@iscas.ac.cn> Link: https://lore.kernel.org/r/20240708080404.3859094-1-nichen@iscas.ac.cn Signed-off-by: Christian Brauner <brauner@kernel.org>
This commit is contained in:
parent
f378ec4eec
commit
b80cc4df11
@ -903,7 +903,8 @@ static int do_mq_open(const char __user *u_name, int oflag, umode_t mode,
|
||||
|
||||
audit_mq_open(oflag, mode, attr);
|
||||
|
||||
if (IS_ERR(name = getname(u_name)))
|
||||
name = getname(u_name);
|
||||
if (IS_ERR(name))
|
||||
return PTR_ERR(name);
|
||||
|
||||
fd = get_unused_fd_flags(O_CLOEXEC);
|
||||
|
Loading…
Reference in New Issue
Block a user