Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/pgoyette-localcount]: src/sys/compat/linux/common simplify for readability
details: https://anonhg.NetBSD.org/src/rev/453e9e374f2e
branches: pgoyette-localcount
changeset: 852829:453e9e374f2e
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Thu Jul 21 10:34:11 2016 +0000
description:
simplify for readability
diffstat:
sys/compat/linux/common/linux_ioctl.c | 13 +++++++------
1 files changed, 7 insertions(+), 6 deletions(-)
diffs (34 lines):
diff -r 9f135a1e5f4e -r 453e9e374f2e sys/compat/linux/common/linux_ioctl.c
--- a/sys/compat/linux/common/linux_ioctl.c Thu Jul 21 06:22:31 2016 +0000
+++ b/sys/compat/linux/common/linux_ioctl.c Thu Jul 21 10:34:11 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: linux_ioctl.c,v 1.58.10.1 2016/07/20 23:47:55 pgoyette Exp $ */
+/* $NetBSD: linux_ioctl.c,v 1.58.10.2 2016/07/21 10:34:11 pgoyette Exp $ */
/*-
* Copyright (c) 1995, 1998, 2008 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: linux_ioctl.c,v 1.58.10.1 2016/07/20 23:47:55 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: linux_ioctl.c,v 1.58.10.2 2016/07/21 10:34:11 pgoyette Exp $");
#if defined(_KERNEL_OPT)
#include "sequencer.h"
@@ -168,10 +168,11 @@
vn_lock(vp, LK_SHARED | LK_RETRY);
error = VOP_GETATTR(vp, &va, l->l_cred);
VOP_UNLOCK(vp);
- if (error == 0 &&
- (cdev = cdevsw_lookup_acquire(va.va_rdev)) ==
- &sequencer_cdevsw)
- is_sequencer = true;
+ if (error == 0) {
+ cdev = cdevsw_lookup_acquire(va.va_rdev);
+ if (cdev == &sequencer_cdevsw)
+ is_sequencer = true;
+ }
}
if (is_sequencer) {
error = oss_ioctl_sequencer(l,
Home |
Main Index |
Thread Index |
Old Index