]> git.baikalelectronics.ru Git - kernel.git/commit
drm: simplify drm_*_set_unique()
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 29 Aug 2014 10:12:41 +0000 (12:12 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Sep 2014 07:42:14 +0000 (17:42 +1000)
commite0d4f97f8c790e082f7651340758378cfb1a9bbc
tree84ed1ba6ab36604fa2783f93a91229637e2c9b16
parent3c113f257a864192fe52ddb4b1dcac124042d3bf
drm: simplify drm_*_set_unique()

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 <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_pci.c
drivers/gpu/drm/drm_platform.c