Unbreak compilation with GCC.

This commit is contained in:
Grzegorz Bernacki 2013-11-21 09:19:14 +00:00
parent c27f33b56c
commit 364871328e
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -197,7 +197,8 @@ nand_ioctl(struct disk *ndisk, u_long cmd, void *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;