aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/nand/nand_cdev.c
diff options
context:
space:
mode:
authorGrzegorz Bernacki <gber@FreeBSD.org>2013-11-21 09:19:14 +0000
committerGrzegorz Bernacki <gber@FreeBSD.org>2013-11-21 09:19:14 +0000
commit364871328ef07f4875d911e1f73a9d84e03fd6ff (patch)
tree56c8bbdd29ced4a43cb1355473b89eea11d9ef2e /sys/dev/nand/nand_cdev.c
parentc27f33b56c02049b4a7bcbe706a7b37aecf817a5 (diff)
downloadsrc-364871328ef07f4875d911e1f73a9d84e03fd6ff.tar.gz
src-364871328ef07f4875d911e1f73a9d84e03fd6ff.zip
Unbreak compilation with GCC.
Notes
Notes: svn path=/head/; revision=258425
Diffstat (limited to 'sys/dev/nand/nand_cdev.c')
-rw-r--r--sys/dev/nand/nand_cdev.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/nand/nand_cdev.c b/sys/dev/nand/nand_cdev.c
index bcfe3ea36125..b01194601ada 100644
--- a/sys/dev/nand/nand_cdev.c
+++ b/sys/dev/nand/nand_cdev.c
@@ -298,7 +298,8 @@ nand_ioctl(struct cdev *dev, u_long cmd, caddr_t data, int fflag,
struct nand_oob_rw *oob_rw = NULL;
struct nand_raw_rw *raw_rw = NULL;
device_t nandbus;
- size_t bufsize, len, raw_size;
+ size_t bufsize = 0, len = 0;
+ size_t raw_size;
off_t off;
uint8_t *buf = NULL;
int ret = 0;