diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2024-10-21 17:20:40 +0300 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2024-11-25 13:12:19 -0600 |
commit | c0e978b4b7527dc1fe75d0d9c98f7427c19d439c (patch) | |
tree | cb53f135173531f1dd79fe3e94b7c1a9e7233212 | |
parent | 880fcc49eb40a78ed27ff575aa02034d7bd74e80 (diff) |
mtd: Drop superfluous const qualifier
The compiler will ignore it anyway:
include/linux/mtd/mtd.h:342:15: warning: type qualifiers ignored on function return type [-Wignored-qualifiers]
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
-rw-r--r-- | include/linux/mtd/mtd.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/mtd/mtd.h b/include/linux/mtd/mtd.h index 6751fb52c5a..3ffcd40807d 100644 --- a/include/linux/mtd/mtd.h +++ b/include/linux/mtd/mtd.h @@ -339,7 +339,7 @@ static inline void mtd_set_ofnode(struct mtd_info *mtd, ofnode node) dev_set_ofnode(mtd->dev, node); } -static inline const ofnode mtd_get_ofnode(struct mtd_info *mtd) +static inline ofnode mtd_get_ofnode(struct mtd_info *mtd) { return dev_ofnode(mtd->dev); } |