[PATCH 15/20] drm: simplify drm_*_set_unique()

2014-08-29 Thread Daniel Vetter
On Fri, Aug 29, 2014 at 12:12:41PM +0200, David Herrmann wrote: > Lets use kasprintf() to avoid pre-allocating the buffer. This is really > nothing to optimize for speed and the input is trusted, so kasprintf() is > just fine. > > Signed-off-by: David Herrmann Reviewed-by: Daniel Vetter > ---

[PATCH 15/20] drm: simplify drm_*_set_unique()

2014-08-29 Thread Thierry Reding
On Fri, Aug 29, 2014 at 12:12:41PM +0200, David Herrmann wrote: > Lets use kasprintf() to avoid pre-allocating the buffer. This is really > nothing to optimize for speed and the input is trusted, so kasprintf() is > just fine. > > Signed-off-by: David Herrmann > --- > drivers/gpu/drm/drm_pci.c

[PATCH 15/20] drm: simplify drm_*_set_unique()

2014-08-29 Thread David Herrmann
Lets use kasprintf() to avoid pre-allocating the buffer. This is really nothing to optimize for speed and the input is trusted, so kasprintf() is just fine. Signed-off-by: David Herrmann --- drivers/gpu/drm/drm_pci.c | 30 -- drivers/gpu/drm/drm_platform.c | 31