git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Pull acpica into release branch
[pandora-kernel.git]
/
drivers
/
char
/
drm
/
ffb_context.c
diff --git
a/drivers/char/drm/ffb_context.c
b/drivers/char/drm/ffb_context.c
index
8a6cc27
..
1383727
100644
(file)
--- a/
drivers/char/drm/ffb_context.c
+++ b/
drivers/char/drm/ffb_context.c
@@
-526,10
+526,8
@@
int ffb_driver_rmctx(struct inode *inode, struct file *filp, unsigned int cmd,
if (idx < 0 || idx >= FFB_MAX_CTXS)
return -EINVAL;
- if (fpriv->hw_state[idx] != NULL) {
- kfree(fpriv->hw_state[idx]);
- fpriv->hw_state[idx] = NULL;
- }
+ kfree(fpriv->hw_state[idx]);
+ fpriv->hw_state[idx] = NULL;
return 0;
}