diff options
author | Andy Shevchenko <andriy.shevchenko@linux.intel.com> | 2025-03-13 12:15:53 +0300 |
---|---|---|
committer | Miquel Raynal <miquel.raynal@bootlin.com> | 2025-03-18 19:18:19 +0300 |
commit | 6bc9f42739889eaaaa47b90f48e4ef8323efa3ea (patch) | |
tree | 839c619a05a99b1f45bce86574e541a9f45e116b /tools/perf/scripts/python/task-analyzer.py | |
parent | 2a6a44555f0727070643fdde7ffac6571e41327a (diff) | |
download | linux-6bc9f42739889eaaaa47b90f48e4ef8323efa3ea.tar.xz |
mtd: mtdpart: Do not supply NULL to printf()
GCC compiler is not happy about NULL being supplied as printf() parameter:
drivers/mtd/mtdpart.c:693:34: error: ā%sā directive argument is null [-Werror=format-overflow=]
Move the code after the parser test for NULL, and drop the ternary completely.
The user can deduct this since when it's not NULL two messages will be printed.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Zhihao Cheng <chengzhihao1@huawei.com>
Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions