Skip to content

Commit f16407d

Browse files
Nicolas PitreThomas Gleixner
authored andcommitted
[MTD] Quiet unused variable warning
Signed-off-by: Nioclas Pitre <nico@cam.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent 0ea4a75 commit f16407d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎include/linux/mtd/map.h‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11

22
/* Overhauled routines for dealing with different mmap regions of flash */
3-
/* $Id: map.h,v 1.47 2005/02/08 17:11:15 nico Exp $ */
3+
/* $Id: map.h,v 1.48 2005/02/16 15:54:59 nico Exp $ */
44

55
#ifndef __LINUX_MTD_MAP_H__
66
#define __LINUX_MTD_MAP_H__
@@ -418,7 +418,7 @@ extern void simple_map_init(struct map_info *);
418418

419419

420420
#define simple_map_init(map) BUG_ON(!map_bankwidth_supported((map)->bankwidth))
421-
#define map_is_linear(map) (1)
421+
#define map_is_linear(map) ({ (void)(map); 1; })
422422

423423
#endif /* !CONFIG_MTD_COMPLEX_MAPPINGS */
424424

0 commit comments

Comments
 (0)