From 01d6bfe9121050df8700748b3135b7c6a5588a48 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bruno=20Pr=C3=A9mont?= Date: Sun, 19 Aug 2012 19:33:02 +0200 Subject: [PATCH] --- yaml --- r: 323449 b: refs/heads/master c: 63583c64558853f0fe7f8166907417792d184e18 h: refs/heads/master i: 323447: a9f22e0cab7a4004f10fadffa84722ac4a424d85 v: v3 --- [refs] | 2 +- trunk/drivers/hid/hid-picolcd_debugfs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/[refs] b/[refs] index 786cb5a2cca4..d05492574486 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: ae08e324146c89f1059e9d3c3898d0260a988795 +refs/heads/master: 63583c64558853f0fe7f8166907417792d184e18 diff --git a/trunk/drivers/hid/hid-picolcd_debugfs.c b/trunk/drivers/hid/hid-picolcd_debugfs.c index 15c22f2ee748..2c7308c2ae1f 100644 --- a/trunk/drivers/hid/hid-picolcd_debugfs.c +++ b/trunk/drivers/hid/hid-picolcd_debugfs.c @@ -657,7 +657,7 @@ void picolcd_debug_raw_event(struct picolcd_data *data, #define BUFF_SZ 256 /* Avoid unnecessary overhead if debugfs is disabled */ - if (!hdev->debug_events) + if (list_empty(&hdev->debug_list)) return; buff = kmalloc(BUFF_SZ, GFP_ATOMIC);