lkml.org 
[lkml]   [2017]   [Dec]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[PATCH v2 0/2] gpiolib: gpio_device label improvements
Date
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

\
 
 \ /
  Last update: 2017-12-14 15:29    [W:0.051 / U:0.576 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site