Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev PR 51184 David Binderman: simplify redundant conditi...
details: https://anonhg.NetBSD.org/src/rev/4ba006106f84
branches: trunk
changeset: 345470:4ba006106f84
user: dholland <dholland%NetBSD.org@localhost>
date: Mon May 30 02:33:49 2016 +0000
description:
PR 51184 David Binderman: simplify redundant conditional
diffstat:
sys/dev/firmload.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diffs (28 lines):
diff -r 045780e1cf1b -r 4ba006106f84 sys/dev/firmload.c
--- a/sys/dev/firmload.c Mon May 30 02:32:19 2016 +0000
+++ b/sys/dev/firmload.c Mon May 30 02:33:49 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: firmload.c,v 1.21 2015/01/04 19:25:32 pooka Exp $ */
+/* $NetBSD: firmload.c,v 1.22 2016/05/30 02:33:49 dholland Exp $ */
/*-
* Copyright (c) 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.21 2015/01/04 19:25:32 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: firmload.c,v 1.22 2016/05/30 02:33:49 dholland Exp $");
/*
* The firmload API provides an interface for device drivers to access
@@ -142,8 +142,7 @@
size_t maxprefix, i;
if (prefix == NULL /* terminated early */
- || *prefix == '\0' /* no more left */
- || *prefix != '/') { /* not absolute */
+ || *prefix != '/') { /* empty or not absolute */
*prefixp = NULL;
return (NULL);
}
Home |
Main Index |
Thread Index |
Old Index