Skip to content

Commit 47ef63e

Browse files
sravnborgdanvet
authored andcommitted
drm: fix drm_can_sleep() comment
Reversed logic when writing the original comment, now fixed. Fixes: e9eafcb ("drm: move drm_can_sleep() to drm_util.h") Reported-by: Laurent Pinchart <[email protected]> Signed-off-by: Sam Ravnborg <[email protected]> Cc: Laurent Pinchart <[email protected]> Cc: Maarten Lankhorst <[email protected]> Cc: Maxime Ripard <[email protected]> Cc: Sean Paul <[email protected]> Cc: David Airlie <[email protected]> Cc: Daniel Vetter <[email protected]> Signed-off-by: Daniel Vetter <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent a236a66 commit 47ef63e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/drm/drm_util.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
* FIXME: All users of drm_can_sleep should be removed (see todo.rst)
7272
*
7373
* Returns:
74-
* True if kgdb is active or we are in an atomic context or irqs are disabled
74+
* False if kgdb is active, we are in atomic context or irqs are disabled.
7575
*/
7676
static inline bool drm_can_sleep(void)
7777
{

0 commit comments

Comments
 (0)