Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/external/bsd/vchiq/dist/interface/compat KNF



details:   https://anonhg.NetBSD.org/src/rev/592194f7cd58
branches:  trunk
changeset: 794866:592194f7cd58
user:      skrll <skrll%NetBSD.org@localhost>
date:      Thu Mar 27 07:56:56 2014 +0000

description:
KNF

diffstat:

 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (56 lines):

diff -r c3dd53d1cc33 -r 592194f7cd58 sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c
--- a/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c   Thu Mar 27 07:54:43 2014 +0000
+++ b/sys/external/bsd/vchiq/dist/interface/compat/vchi_bsd.c   Thu Mar 27 07:56:56 2014 +0000
@@ -26,7 +26,7 @@
  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  * SUCH DAMAGE.
  *
- * $Id: vchi_bsd.c,v 1.4 2014/03/27 07:54:43 skrll Exp $
+ * $Id: vchi_bsd.c,v 1.5 2014/03/27 07:56:56 skrll Exp $
  */
 
 #include <sys/types.h>
@@ -296,14 +296,14 @@
 
                if (ret == EINTR || ret == ERESTART) {
                        mutex_exit(&s->mtx);
-                       return (-EINTR);
+                       return -EINTR;
                }
        }
 
        s->value--;
        mutex_exit(&s->mtx);
 
-       return (0);
+       return 0;
 }
 
 int
@@ -325,7 +325,7 @@
 
        mutex_exit(&s->mtx);
 
-       return (ret);
+       return ret;
 }
 
 void
@@ -385,7 +385,7 @@
 fatal_signal_pending(VCHIQ_THREAD_T thr)
 {
        printf("Implement ME: %s\n", __func__);
-       return (0);
+       return 0;
 }
 
 /*
@@ -426,7 +426,7 @@
 
        if (thread_data_slot >= MAX_THREAD_DATA_SLOTS) {
                printf("kthread_create: out of thread data slots\n");
-               return (NULL);
+               return NULL;
        }
 
        slot = &thread_slots[thread_data_slot];



Home | Main Index | Thread Index | Old Index