PR 51184 David Binderman: simplify redundant conditional

This commit is contained in:
dholland 2016-05-30 02:33:49 +00:00
parent 626c0685a4
commit fb16143a2d
1 changed files with 3 additions and 4 deletions

View File

@ -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 @@ firmware_path_next(const char *drvname, const char *imgname, char *pnbuf,
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);
}