1

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:
Chen Ni 2024-07-08 16:04:04 +08:00 committed by Christian Brauner
parent f378ec4eec
commit b80cc4df11
No known key found for this signature in database
GPG Key ID: 91C61BC06578DCA2

View File

@ -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);