Tag: 42d7fbe223ab878b23de9e3b0166f8cd665a2aa5

mtd: do not use plain 0 as NULL

Author: Artem Bityutskiy <artem.bityutskiy@linux.intel.com> The first 3 arguments of ‘mtd_device_parse_register()’ are pointers, but many callers pass ‘0’ instead of ‘NULL’. Fix this globally. Thanks to coccinelle for making it easy to do with the following semantic patch: @@ expression mtd, types, parser_data, parts, nr_parts; @@ ( -mtd_device_parse_register(mtd, 0, parser_data, parts, nr_parts) +mtd_device_parse_register(mtd, NULL, parser_data, parts, …

Continue reading