Removed duplicated device file check