mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
HID: picolcd: testing the wrong variable
"ref_cnt" is a point to the reference count and it's non-null. We really want to test the reference count itself. Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
This commit is contained in:
parent
3cfc2c42c1
commit
a106025015
1 changed files with 1 additions and 1 deletions
|
|
@ -547,7 +547,7 @@ static void picolcd_fb_destroy(struct fb_info *info)
|
|||
ref_cnt--;
|
||||
mutex_lock(&info->lock);
|
||||
(*ref_cnt)--;
|
||||
may_release = !ref_cnt;
|
||||
may_release = !*ref_cnt;
|
||||
mutex_unlock(&info->lock);
|
||||
if (may_release) {
|
||||
framebuffer_release(info);
|
||||
|
|
|
|||
Loading…
Reference in a new issue