Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/sdmmc Clean up return/error in sdmem_mem_send_scr().
details: https://anonhg.NetBSD.org/src/rev/495a53f6f845
branches: trunk
changeset: 757741:495a53f6f845
user: kiyohara <kiyohara%NetBSD.org@localhost>
date: Mon Sep 20 09:42:32 2010 +0000
description:
Clean up return/error in sdmem_mem_send_scr().
diffstat:
sys/dev/sdmmc/sdmmc_mem.c | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diffs (32 lines):
diff -r a88a1d71ebf8 -r 495a53f6f845 sys/dev/sdmmc/sdmmc_mem.c
--- a/sys/dev/sdmmc/sdmmc_mem.c Mon Sep 20 09:34:47 2010 +0000
+++ b/sys/dev/sdmmc/sdmmc_mem.c Mon Sep 20 09:42:32 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: sdmmc_mem.c,v 1.8 2010/09/20 09:34:47 kiyohara Exp $ */
+/* $NetBSD: sdmmc_mem.c,v 1.9 2010/09/20 09:42:32 kiyohara Exp $ */
/* $OpenBSD: sdmmc_mem.c,v 1.10 2009/01/09 10:55:22 jsg Exp $ */
/*
@@ -46,7 +46,7 @@
/* Routines for SD/MMC memory cards. */
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.8 2010/09/20 09:34:47 kiyohara Exp $");
+__KERNEL_RCSID(0, "$NetBSD: sdmmc_mem.c,v 1.9 2010/09/20 09:42:32 kiyohara Exp $");
#include <sys/param.h>
#include <sys/kernel.h>
@@ -731,10 +731,10 @@
}
DPRINTF(("%s: sdmem_mem_send_scr: error = %d\n", SDMMCDEVNAME(sc),
error));
- if (error)
- return error;
+
#ifdef SDMMC_DEBUG
- sdmmc_dump_data("SCR", scr, 8);
+ if (error == 0)
+ sdmmc_dump_data("SCR", scr, 8);
#endif
return error;
}
Home |
Main Index |
Thread Index |
Old Index