Avoid unnecessary memory allocations with kstrdup_const(). v1 -> v2: - use a ternary operator instead of an if/else in patch 2/2 Bartosz Golaszewski (2): gpiolib: constify label in gpio_device gpiolib: use kstrdup_const() for gpio_device label drivers/gpio/gpiolib.c | 9 +++------ drivers/gpio/gpiolib.h | 2 +- 2 files changed, 4 insertions(+), 7 deletions(-) -- 2.15.1 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html