Skip to content

Commit 040cb2e

Browse files
committed
linux: include errno check in UNLIKELY macro
Signed-off-by: Giuseppe Scrivano <[email protected]>
1 parent b81374d commit 040cb2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcrun/linux.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4303,7 +4303,7 @@ prepare_and_send_dev_mounts (libcrun_container_t *container, int sync_socket_hos
43034303
return ret;
43044304

43054305
ret = mkdir (devs_path, 0700);
4306-
if (UNLIKELY (ret < 0) && errno != EEXIST)
4306+
if (UNLIKELY (ret < 0 && errno != EEXIST))
43074307
return crun_make_error (err, errno, "mkdir `%s`", devs_path);
43084308

43094309
current_mountns = open ("/proc/self/ns/mnt", O_RDONLY | O_CLOEXEC);

0 commit comments

Comments
 (0)