Module Name: src
Committed By: joerg
Date: Fri Sep 13 22:18:42 UTC 2013
Modified Files:
src/sys/dev/flash: flash.c
Log Message:
GC flash_get_part_offset.
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/dev/flash/flash.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/dev/flash/flash.c
diff -u src/sys/dev/flash/flash.c:1.9 src/sys/dev/flash/flash.c:1.10
--- src/sys/dev/flash/flash.c:1.9 Fri Jul 29 20:48:33 2011
+++ src/sys/dev/flash/flash.c Fri Sep 13 22:18:42 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $ */
+/* $NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $ */
/*-
* Copyright (c) 2011 Department of Software Engineering,
@@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.9 2011/07/29 20:48:33 ahoka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: flash.c,v 1.10 2013/09/13 22:18:42 joerg Exp $");
#include <sys/param.h>
#include <sys/types.h>
@@ -535,12 +535,6 @@ flash_get_size(dev_t dev)
return sc->sc_partinfo.part_size;
}
-static inline flash_off_t
-flash_get_part_offset(struct flash_softc * const sc, size_t poffset)
-{
- return sc->sc_partinfo.part_offset + poffset;
-}
-
int
flash_erase(device_t self, struct flash_erase_instruction * const ei)
{