summaryrefslogtreecommitdiffstats
path: root/sys/dev/tdfx
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2005-02-22 18:57:18 +0000
committersam <sam@FreeBSD.org>2005-02-22 18:57:18 +0000
commitbfb151084c0ed694c488771a4c5c4c1f89e4e201 (patch)
treed902fa24e3731b89fb4df0e0d11d47c114598559 /sys/dev/tdfx
parent31dd38da62328e545a0c4e79198b1b866d43b1d3 (diff)
downloadFreeBSD-src-bfb151084c0ed694c488771a4c5c4c1f89e4e201.zip
FreeBSD-src-bfb151084c0ed694c488771a4c5c4c1f89e4e201.tar.gz
remove dead code (inside a DEBUG ifdef)
Submitted by: Coverity Prevent analysis tool
Diffstat (limited to 'sys/dev/tdfx')
-rw-r--r--sys/dev/tdfx/tdfx_pci.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/sys/dev/tdfx/tdfx_pci.c b/sys/dev/tdfx/tdfx_pci.c
index 351411a..7ad6282 100644
--- a/sys/dev/tdfx/tdfx_pci.c
+++ b/sys/dev/tdfx/tdfx_pci.c
@@ -384,12 +384,8 @@ tdfx_setmtrr(device_t dev) {
* If, for some reason, we can't set the MTRR (N/A?) we may still continue
*/
#ifdef DEBUG
- if(retval == 0) {
- device_printf(dev, "MTRR Set Type Uncacheable %x\n",
- (u_int32_t)tdfx_info->mrdesc.mr_base);
- } else {
- device_printf(dev, "Couldn't Set MTRR\n");
- }
+ device_printf(dev, "MTRR Set Type Uncacheable %x\n",
+ (u_int32_t)tdfx_info->mrdesc.mr_base);
#endif
}
#ifdef DEBUG
OpenPOWER on IntegriCloud