summaryrefslogtreecommitdiff
path: root/fs/yaffs2/yaffs_mtdif2.c
diff options
context:
space:
mode:
authorCharles Manning <cdhmanning@gmail.com>2012-08-14 18:26:10 +0000
committerWolfgang Denk <wd@denx.de>2012-09-02 16:47:50 +0200
commit74f45b739be635eaa4ec3a40dec6ad66084748c4 (patch)
treee67a5514834cd8e6bd5c36d93703004d7aa2919a /fs/yaffs2/yaffs_mtdif2.c
parent7cdcaef0b286fa20926d750304442ad770a1fca8 (diff)
downloadu-boot-imx-74f45b739be635eaa4ec3a40dec6ad66084748c4.zip
u-boot-imx-74f45b739be635eaa4ec3a40dec6ad66084748c4.tar.gz
u-boot-imx-74f45b739be635eaa4ec3a40dec6ad66084748c4.tar.bz2
u-boot yaffs2: Fix compilation warnings
Also remove yaffs_hweight and use the hweight in u-boot. Signed-off-by: Charles Manning <cdhmanning@gmail.com>
Diffstat (limited to 'fs/yaffs2/yaffs_mtdif2.c')
-rw-r--r--fs/yaffs2/yaffs_mtdif2.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/yaffs2/yaffs_mtdif2.c b/fs/yaffs2/yaffs_mtdif2.c
index b27fe56..8135bcc 100644
--- a/fs/yaffs2/yaffs_mtdif2.c
+++ b/fs/yaffs2/yaffs_mtdif2.c
@@ -28,7 +28,6 @@
#include "yaffs_trace.h"
#include "yaffs_packedtags2.h"
-#include "string.h"
#define yaffs_dev_to_mtd(dev) ((struct mtd_info *)((dev)->driver_context))
#define yaffs_dev_to_lc(dev) ((struct yaffs_linux_context *)((dev)->os_context))
@@ -46,9 +45,7 @@ int nandmtd2_write_chunk_tags(struct yaffs_dev *dev, int nand_chunk,
struct mtd_oob_ops ops;
int retval = 0;
-
loff_t addr;
- u8 local_spare[128];
struct yaffs_packed_tags2 pt;