diff options
author | Jeroen Hofstee <jeroen@myspectrum.nl> | 2014-07-12 15:16:51 +0200 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-07-18 17:53:23 -0400 |
commit | e803fa2c4b9313a9efc7b9f87a49839d542d9615 (patch) | |
tree | 68ce99724dc707f156672d00daacf0f1bab680ad /fs/yaffs2/yaffsfs.c | |
parent | 82c3a4c445939a12df1f6c7ee245d2d801672186 (diff) | |
download | u-boot-imx-e803fa2c4b9313a9efc7b9f87a49839d542d9615.zip u-boot-imx-e803fa2c4b9313a9efc7b9f87a49839d542d9615.tar.gz u-boot-imx-e803fa2c4b9313a9efc7b9f87a49839d542d9615.tar.bz2 |
yaffs2: cosmetic: remove self assignments
Remove self assignments which is just dead code to prevent
compiler warnings about non used arguments. For u-boot this
does not prevent any warning though, on the contrary it actual
introduces warnings when compiling with clang. Remove them.
Signed-off-by: Jeroen Hofstee <jeroen@myspectrum.nl>
Diffstat (limited to 'fs/yaffs2/yaffsfs.c')
-rw-r--r-- | fs/yaffs2/yaffsfs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/fs/yaffs2/yaffsfs.c b/fs/yaffs2/yaffsfs.c index 334598e..41e5f01 100644 --- a/fs/yaffs2/yaffsfs.c +++ b/fs/yaffs2/yaffsfs.c @@ -3136,10 +3136,6 @@ int yaffs_link(const YCHAR *oldpath, const YCHAR *linkpath) int yaffs_mknod(const YCHAR *pathname, mode_t mode, dev_t dev) { - pathname = pathname; - mode = mode; - dev = dev; - yaffsfs_SetError(-EINVAL); return -1; } @@ -3187,9 +3183,7 @@ int yaffs_set_error(int error) int yaffs_dump_dev(const YCHAR *path) { -#if 1 - path = path; -#else +#if 0 YCHAR *rest; struct yaffs_obj *obj = yaffsfs_FindRoot(path, &rest); |