]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mtd: Drop superfluous const qualifier
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 21 Oct 2024 14:20:40 +0000 (17:20 +0300)
committerTom Rini <trini@konsulko.com>
Mon, 25 Nov 2024 19:12:19 +0000 (13:12 -0600)
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>
include/linux/mtd/mtd.h

index 6751fb52c5a5fd82f89078af0eda6387fd319cd1..3ffcd40807d004acef0affe25386d6118fe98451 100644 (file)
@@ -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);
 }