From: gene Date: Thu, 24 Apr 1997 00:54:34 +0000 (+0000) Subject: From Scott Reynolds: X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=9fb19599a54431c36f02329fa773b771224894ff;p=openbsd From Scott Reynolds: >Clean up unused code, KNF bus_probe() --- diff --git a/sys/arch/mac68k/mac68k/machdep.c b/sys/arch/mac68k/mac68k/machdep.c index c3384b35ce3..284a2868dd0 100644 --- a/sys/arch/mac68k/mac68k/machdep.c +++ b/sys/arch/mac68k/mac68k/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.38 1997/04/14 18:47:59 gene Exp $ */ +/* $OpenBSD: machdep.c,v 1.39 1997/04/24 00:54:34 gene Exp $ */ /* $NetBSD: machdep.c,v 1.134 1997/02/14 06:15:30 scottr Exp $ */ /* @@ -2868,14 +2868,9 @@ bus_probe(t, bsh, offset, sz) int i; label_t faultbuf; -#ifdef lint - i = *addr; - if (i) - return (0); -#endif - nofault = (int *) &faultbuf; - if (setjmp((label_t *) nofault)) { - nofault = (int *) 0; + nofault = (int *)&faultbuf; + if (setjmp((label_t *)nofault)) { + nofault = (int *)0; return (0); } @@ -2895,10 +2890,10 @@ bus_probe(t, bsh, offset, sz) #ifdef DIAGNOSTIC printf("bus_probe: unsupported data size %d\n", sz); #endif - nofault = (int *) 0; + nofault = (int *)0; return (0); } - nofault = (int *) 0; + nofault = (int *)0; return (1); }