ipc: Using unlikely macro is more efficient.
PATCH 1/1 ipc: Using unlikely macro is more efficient.
Signed-off-by Mohammed Mansour <[email protected]>
--- ipc/shm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
ipc/shm.c +1 -1
@@ -734,7 +734,7 @@ static int newseg(struct ipc_namespace *ns, struct ipc_params *params) shp->shm_perm.security =NULL ; error =security_shm_alloc (&shp->shm_perm); -if (error) { +if (unlikely (error)) {kfree (shp);return error; }
Signature · 1 line
2.34.1