svn commit: r316961 - stable/11/sys/compat/linux
Dmitry Chagin
dchagin at FreeBSD.org
Sat Apr 15 15:09:25 UTC 2017
Author: dchagin
Date: Sat Apr 15 15:09:23 2017
New Revision: 316961
URL: https://svnweb.freebsd.org/changeset/base/316961
Log:
MFC r314648:
Style(9).
Modified:
stable/11/sys/compat/linux/linux_ipc.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/sys/compat/linux/linux_ipc.c
==============================================================================
--- stable/11/sys/compat/linux/linux_ipc.c Sat Apr 15 15:08:23 2017 (r316960)
+++ stable/11/sys/compat/linux/linux_ipc.c Sat Apr 15 15:09:23 2017 (r316961)
@@ -531,7 +531,7 @@ linux_semctl(struct thread *td, struct l
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 l
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 l
*/
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 l
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 l
/* 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 l
/* 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 l
/* 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 l
/* 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 l
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 l
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;
More information about the svn-src-all
mailing list