From: Charles Manning Date: Thu, 7 Jun 2012 21:49:15 +0000 (+1200) Subject: Change how unused arguments are handled X-Git-Tag: pre-driver-refactoring~7 X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs2.git;a=commitdiff_plain;h=006efa87bb82703f1cdd56cb8c7a3b06d489d4e3 Change how unused arguments are handled Changed form from a = a (void) a Signed-off-by: Charles Manning --- diff --git a/direct/yaffsfs.c b/direct/yaffsfs.c index 62fb793..61aee74 100644 --- a/direct/yaffsfs.c +++ b/direct/yaffsfs.c @@ -3137,9 +3137,9 @@ 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; + (void) pathname; + (void) mode; + (void) dev; yaffsfs_SetError(-EINVAL); return -1; @@ -3189,7 +3189,7 @@ int yaffs_set_error(int error) int yaffs_dump_dev(const YCHAR *path) { #if 1 - path = path; + (void) path; #else YCHAR *rest; diff --git a/yaffs_guts.c b/yaffs_guts.c index 6d9f608..dfa775f 100644 --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -194,18 +194,18 @@ static void yaffs_handle_chunk_wr_ok(struct yaffs_dev *dev, int nand_chunk, const u8 *data, const struct yaffs_ext_tags *tags) { - dev = dev; - nand_chunk = nand_chunk; - data = data; - tags = tags; + (void) dev; + (void) nand_chunk; + (void) data; + (void) tags; } static void yaffs_handle_chunk_update(struct yaffs_dev *dev, int nand_chunk, const struct yaffs_ext_tags *tags) { - dev = dev; - nand_chunk = nand_chunk; - tags = tags; + (void) dev; + (void) nand_chunk; + (void) tags; } void yaffs_handle_chunk_error(struct yaffs_dev *dev, @@ -791,7 +791,7 @@ struct yaffs_tnode *yaffs_find_tnode_0(struct yaffs_dev *dev, int required_depth; int level = file_struct->top_level; - dev = dev; + (void) dev; /* Check sane level and chunk Id */ if (level < 0 || level > YAFFS_TNODES_MAX_LEVEL) @@ -3198,7 +3198,7 @@ static void yaffs_load_name_from_oh(struct yaffs_dev *dev, YCHAR *name, } } else { #else - dev = dev; + (void) dev; { #endif strncpy(name, oh_name, buff_size - 1); diff --git a/yaffs_verify.c b/yaffs_verify.c index db48e56..e8f2f0a 100644 --- a/yaffs_verify.c +++ b/yaffs_verify.c @@ -19,20 +19,20 @@ int yaffs_skip_verification(struct yaffs_dev *dev) { - dev = dev; + (void) dev; return !(yaffs_trace_mask & (YAFFS_TRACE_VERIFY | YAFFS_TRACE_VERIFY_FULL)); } static int yaffs_skip_full_verification(struct yaffs_dev *dev) { - dev = dev; + (void) dev; return !(yaffs_trace_mask & (YAFFS_TRACE_VERIFY_FULL)); } static int yaffs_skip_nand_verification(struct yaffs_dev *dev) { - dev = dev; + (void) dev; return !(yaffs_trace_mask & (YAFFS_TRACE_VERIFY_NAND)); } @@ -524,6 +524,6 @@ void yaffs_verify_free_chunks(struct yaffs_dev *dev) int yaffs_verify_file_sane(struct yaffs_obj *in) { - in = in; + (void) in; return YAFFS_OK; }