Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/linux/common Adoid excessive use of "return" in "...
details: https://anonhg.NetBSD.org/src/rev/58fd8b9d990f
branches: trunk
changeset: 495473:58fd8b9d990f
user: tron <tron%NetBSD.org@localhost>
date: Fri Jul 28 21:49:09 2000 +0000
description:
Adoid excessive use of "return" in "excessive()".
diffstat:
sys/compat/linux/common/linux_signal.c | 8 ++------
1 files changed, 2 insertions(+), 6 deletions(-)
diffs (24 lines):
diff -r 785ac6d64da2 -r 58fd8b9d990f sys/compat/linux/common/linux_signal.c
--- a/sys/compat/linux/common/linux_signal.c Fri Jul 28 21:38:45 2000 +0000
+++ b/sys/compat/linux/common/linux_signal.c Fri Jul 28 21:49:09 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_signal.c,v 1.27 2000/07/28 21:38:44 tron Exp $ */
+/* $NetBSD: linux_signal.c,v 1.28 2000/07/28 21:49:09 tron Exp $ */
/*-
* Copyright (c) 1995, 1998 The NetBSD Foundation, Inc.
* All rights reserved.
@@ -447,13 +447,9 @@
}
error = sigprocmask1(p, how,
set ? &nbss : NULL, oset ? &obss : NULL);
- if (error)
- return (error);
- if (oset) {
+ if (!error && oset) {
native_to_linux_sigset(&obss, &olss);
error = copyout(&olss, oset, sizeof(olss));
- if (error)
- return (error);
}
return (error);
}
Home |
Main Index |
Thread Index |
Old Index