From d511eb7d642aaf513fefeb05514dc6177c53c350 Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Sun, 24 May 2015 19:45:38 -0300 Subject: [PATCH] [media] uvcvideo: Remove unneeded device disconnected flag The UVC_DEV_DISCONNECTED flag is set when the USB device is disconnected, and checked in the open() handler to refuse opening a device that has been disconnected. This is inherently racy, but the race condition is taken care of in the V4L2 core, which also fails open() calls when the V4L2 device node has been unregistered. As the uvcvideo USB disconnect handler unregisters all its video device nodes, the UVC_DEV_DISCONNECTED flag doesn't serve any purpose anymore and can be removed. Signed-off-by: Laurent Pinchart Signed-off-by: Mauro Carvalho Chehab --- Reading git-format-patch failed