OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aeb24cc
)
drm: remove unnecessary sizeof(u8)
author
Fabian Frederick
<fabf@skynet.be>
Sun, 16 Nov 2014 10:21:25 +0000
(11:21 +0100)
committer
Dave Airlie
<airlied@redhat.com>
Thu, 20 Nov 2014 01:30:37 +0000
(11:30 +1000)
sizeof(u8) is always 1.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/r128/r128_state.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/r128/r128_state.c
b/drivers/gpu/drm/r128/r128_state.c
index
575e986
..
8fd2d9f
100644
(file)
--- a/
drivers/gpu/drm/r128/r128_state.c
+++ b/
drivers/gpu/drm/r128/r128_state.c
@@
-905,7
+905,7
@@
static int r128_cce_dispatch_write_span(struct drm_device *dev,
if (IS_ERR(buffer))
return PTR_ERR(buffer);
- mask_size = depth->n
* sizeof(u8)
;
+ mask_size = depth->n;
if (depth->mask) {
mask = memdup_user(depth->mask, mask_size);
if (IS_ERR(mask)) {
@@
-1010,7
+1010,7
@@
static int r128_cce_dispatch_write_pixels(struct drm_device *dev,
}
if (depth->mask) {
- mask_size = depth->n
* sizeof(u8)
;
+ mask_size = depth->n;
mask = memdup_user(depth->mask, mask_size);
if (IS_ERR(mask)) {
kfree(x);