diff options
author | Jesper Juhl <jj@chaosbits.net> | 2010-11-08 18:08:25 -0500 |
---|---|---|
committer | Jiri Kosina <jkosina@suse.cz> | 2011-01-19 09:24:49 -0500 |
commit | 288db88216081bed4761ad0924527a9ca54025e9 (patch) | |
tree | dee9dc3e12370ebd236b85a3a3b04e3bfd5700fd /drivers/gpu | |
parent | c5e0591ae3a13adfe2d6d685ba9cc6d84d0e58df (diff) |
GPU DRM: Remove unnecessary casts of void ptr returning alloc function return values
The [vk][cmz]alloc(_node) family of functions return void pointers which
it's completely unnecessary/pointless to cast to other pointer types since
that happens implicitly.
This patch removes such casts from drivers/gpu/drm/
Signed-off-by: Jesper Juhl <jj@chaosbits.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/drm_sman.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/gpu/drm/drm_sman.c b/drivers/gpu/drm/drm_sman.c index 463aed9403db..34664587a74e 100644 --- a/drivers/gpu/drm/drm_sman.c +++ b/drivers/gpu/drm/drm_sman.c | |||
@@ -59,9 +59,7 @@ drm_sman_init(struct drm_sman * sman, unsigned int num_managers, | |||
59 | { | 59 | { |
60 | int ret = 0; | 60 | int ret = 0; |
61 | 61 | ||
62 | sman->mm = (struct drm_sman_mm *) kcalloc(num_managers, | 62 | sman->mm = kcalloc(num_managers, sizeof(*sman->mm), GFP_KERNEL); |
63 | sizeof(*sman->mm), | ||
64 | GFP_KERNEL); | ||
65 | if (!sman->mm) { | 63 | if (!sman->mm) { |
66 | ret = -ENOMEM; | 64 | ret = -ENOMEM; |
67 | goto out; | 65 | goto out; |