diff options
author | 2008-02-19 13:18:50 +0000 | |
---|---|---|
committer | 2008-02-19 13:18:50 +0000 | |
commit | ef12528abebcfaa3e3855a3500f0a4a06871cd4c (patch) | |
tree | d8d39923a4d0faaf26ab625d5ad4bcfba1f29179 | |
parent | Match on AnyDATA ADU-500A. (diff) | |
download | wireguard-openbsd-ef12528abebcfaa3e3855a3500f0a4a06871cd4c.tar.xz wireguard-openbsd-ef12528abebcfaa3e3855a3500f0a4a06871cd4c.zip |
Remove duplicate strcmp().
From Iruata Souza <iru.muzgo@gmail.com>
-rw-r--r-- | sys/arch/sgi/stand/boot/arcbios.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sgi/stand/boot/arcbios.c b/sys/arch/sgi/stand/boot/arcbios.c index 6724d926bd5..d012ea5de31 100644 --- a/sys/arch/sgi/stand/boot/arcbios.c +++ b/sys/arch/sgi/stand/boot/arcbios.c @@ -1,4 +1,4 @@ -/* $OpenBSD: arcbios.c,v 1.4 2004/10/20 12:49:15 pefo Exp $ */ +/* $OpenBSD: arcbios.c,v 1.5 2008/02/19 13:18:50 jsing Exp $ */ /*- * Copyright (c) 1996 M. Warner Losh. All rights reserved. * Copyright (c) 1996-2004 Opsycon AB. All rights reserved. @@ -244,8 +244,7 @@ devopen(struct open_file *f, const char *fname, char **file) * Scan the component list and find device and partition. */ while ((ncp = bios_get_path_component(cp, namebuf, &i)) != NULL) { - if ((strcmp(namebuf, "partition") == 0) || - (strcmp(namebuf, "partition") == 0)) { + if (strcmp(namebuf, "partition") == 0) { partition = i; if (USE_SGI_PARTITIONS) ecp = ncp; |