diff options
author | Joe Perches <joe@perches.com> | 2015-04-15 19:17:54 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-04-15 19:35:24 -0400 |
commit | 7f032d6ef6154868a2a5d5f6b2c3f8587292196c (patch) | |
tree | 4defd42c0bcae9ad3f1272002e2f718aaa56e669 /ipc/msg.c | |
parent | 4395eb1f16cc55406fe3de4546134fc61253a06b (diff) |
ipc: remove use of seq_printf return value
The seq_printf return value, because it's frequently misused,
will eventually be converted to void.
See: commit 1f33c41c03da ("seq_file: Rename seq_overflow() to
seq_has_overflowed() and make public")
Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'ipc/msg.c')
-rw-r--r-- | ipc/msg.c | 34 |
1 files changed, 18 insertions, 16 deletions
@@ -1015,22 +1015,24 @@ static int sysvipc_msg_proc_show(struct seq_file *s, void *it) | |||
1015 | struct user_namespace *user_ns = seq_user_ns(s); | 1015 | struct user_namespace *user_ns = seq_user_ns(s); |
1016 | struct msg_queue *msq = it; | 1016 | struct msg_queue *msq = it; |
1017 | 1017 | ||
1018 | return seq_printf(s, | 1018 | seq_printf(s, |
1019 | "%10d %10d %4o %10lu %10lu %5u %5u %5u %5u %5u %5u %10lu %10lu %10lu\n", | 1019 | "%10d %10d %4o %10lu %10lu %5u %5u %5u %5u %5u %5u %10lu %10lu %10lu\n", |
1020 | msq->q_perm.key, | 1020 | msq->q_perm.key, |
1021 | msq->q_perm.id, | 1021 | msq->q_perm.id, |
1022 | msq->q_perm.mode, | 1022 | msq->q_perm.mode, |
1023 | msq->q_cbytes, | 1023 | msq->q_cbytes, |
1024 | msq->q_qnum, | 1024 | msq->q_qnum, |
1025 | msq->q_lspid, | 1025 | msq->q_lspid, |
1026 | msq->q_lrpid, | 1026 | msq->q_lrpid, |
1027 | from_kuid_munged(user_ns, msq->q_perm.uid), | 1027 | from_kuid_munged(user_ns, msq->q_perm.uid), |
1028 | from_kgid_munged(user_ns, msq->q_perm.gid), | 1028 | from_kgid_munged(user_ns, msq->q_perm.gid), |
1029 | from_kuid_munged(user_ns, msq->q_perm.cuid), | 1029 | from_kuid_munged(user_ns, msq->q_perm.cuid), |
1030 | from_kgid_munged(user_ns, msq->q_perm.cgid), | 1030 | from_kgid_munged(user_ns, msq->q_perm.cgid), |
1031 | msq->q_stime, | 1031 | msq->q_stime, |
1032 | msq->q_rtime, | 1032 | msq->q_rtime, |
1033 | msq->q_ctime); | 1033 | msq->q_ctime); |
1034 | |||
1035 | return 0; | ||
1034 | } | 1036 | } |
1035 | #endif | 1037 | #endif |
1036 | 1038 | ||