summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordchagin <dchagin@FreeBSD.org>2017-04-15 15:09:23 +0000
committerdchagin <dchagin@FreeBSD.org>2017-04-15 15:09:23 +0000
commit0d28ee294899b065b8b0f868f780a293190049c5 (patch)
tree523a7ed03693a423d5228e37f0b8d067d7ba7637
parentfcb83a9e01b7d523ce26181a02c5967fbdaa5f90 (diff)
downloadFreeBSD-src-0d28ee294899b065b8b0f868f780a293190049c5.zip
FreeBSD-src-0d28ee294899b065b8b0f868f780a293190049c5.tar.gz
MFC r314648:
Style(9).
-rw-r--r--sys/compat/linux/linux_ipc.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c
index 90a20a2..1d0b91c 100644
--- a/sys/compat/linux/linux_ipc.c
+++ b/sys/compat/linux/linux_ipc.c
@@ -531,7 +531,7 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args)
cmd = IPC_SET;
error = linux_semid_pullup(args->cmd & LINUX_IPC_64,
&linux_semid, PTRIN(args->arg.buf));
- if (error)
+ if (error != 0)
return (error);
linux_to_bsd_semid_ds(&linux_semid, &semid);
semun.buf = &semid;
@@ -546,7 +546,7 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args)
semun.buf = &semid;
error = kern_semctl(td, args->semid, args->semnum, cmd, &semun,
&rval);
- if (error)
+ if (error != 0)
return (error);
bsd_to_linux_semid_ds(&semid, &linux_semid);
error = linux_semid_pushdown(args->cmd & LINUX_IPC_64,
@@ -573,7 +573,7 @@ linux_semctl(struct thread *td, struct linux_semctl_args *args)
*/
error = copyout(&linux_seminfo,
PTRIN(args->arg.buf), sizeof(linux_seminfo));
- if (error)
+ if (error != 0)
return (error);
td->td_retval[0] = seminfo.semmni;
return (0); /* No need for __semctl call */
@@ -690,7 +690,7 @@ linux_msgctl(struct thread *td, struct linux_msgctl_args *args)
case LINUX_IPC_SET:
error = linux_msqid_pullup(args->cmd & LINUX_IPC_64,
&linux_msqid, PTRIN(args->buf));
- if (error)
+ if (error != 0)
return (error);
linux_to_bsd_msqid_ds(&linux_msqid, &bsd_msqid);
break;
@@ -788,7 +788,7 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
/* Perform shmctl wanting removed segments lookup */
error = kern_shmctl(td, args->shmid, IPC_INFO,
(void *)&bsd_shminfo, NULL);
- if (error)
+ if (error != 0)
return (error);
bsd_to_linux_shminfo(&bsd_shminfo, &linux_shminfo);
@@ -803,7 +803,7 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
/* Perform shmctl wanting removed segments lookup */
error = kern_shmctl(td, args->shmid, SHM_INFO,
(void *)&bsd_shm_info, NULL);
- if (error)
+ if (error != 0)
return (error);
bsd_to_linux_shm_info(&bsd_shm_info, &linux_shm_info);
@@ -816,9 +816,9 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
/* Perform shmctl wanting removed segments lookup */
error = kern_shmctl(td, args->shmid, IPC_STAT,
(void *)&bsd_shmid, NULL);
- if (error)
+ if (error != 0)
return (error);
-
+
bsd_to_linux_shmid_ds(&bsd_shmid, &linux_shmid);
return (linux_shmid_pushdown(args->cmd & LINUX_IPC_64,
@@ -828,9 +828,9 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
/* Perform shmctl wanting removed segments lookup */
error = kern_shmctl(td, args->shmid, IPC_STAT,
(void *)&bsd_shmid, NULL);
- if (error)
+ if (error != 0)
return (error);
-
+
bsd_to_linux_shmid_ds(&bsd_shmid, &linux_shmid);
return (linux_shmid_pushdown(args->cmd & LINUX_IPC_64,
@@ -839,7 +839,7 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
case LINUX_IPC_SET:
error = linux_shmid_pullup(args->cmd & LINUX_IPC_64,
&linux_shmid, PTRIN(args->buf));
- if (error)
+ if (error != 0)
return (error);
linux_to_bsd_shmid_ds(&linux_shmid, &bsd_shmid);
@@ -856,7 +856,7 @@ linux_shmctl(struct thread *td, struct linux_shmctl_args *args)
else {
error = linux_shmid_pullup(args->cmd & LINUX_IPC_64,
&linux_shmid, PTRIN(args->buf));
- if (error)
+ if (error != 0)
return (error);
linux_to_bsd_shmid_ds(&linux_shmid, &bsd_shmid);
buf = (void *)&bsd_shmid;
OpenPOWER on IntegriCloud