Skip to content

Commit

Permalink
drm: gm12u320: Add -ENODEV to list of errors to ignore
Browse files Browse the repository at this point in the history
Add -ENODEV to the list of usb-transfer errors which we ignore to
avoid logging Frame update errors when the device gets unplugged.

Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190811143725.5951-2-hdegoede@redhat.com
  • Loading branch information
Hans de Goede committed Aug 12, 2019
1 parent 9b61db1 commit ac9fd65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/tiny/gm12u320.c
Original file line number Diff line number Diff line change
Expand Up @@ -422,7 +422,7 @@ static void gm12u320_fb_update_work(struct work_struct *work)
return;
err:
/* Do not log errors caused by module unload or device unplug */
if (ret != -ECONNRESET && ret != -ESHUTDOWN)
if (ret != -ENODEV && ret != -ECONNRESET && ret != -ESHUTDOWN)
GM12U320_ERR("Frame update error: %d\n", ret);
}

Expand Down

0 comments on commit ac9fd65

Please sign in to comment.