Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fb6d2526 authored by Al Viro's avatar Al Viro Committed by Mike Marshall
Browse files

orangefs: generic_file_open() is pointless for character devices

parent 3e1dd9aa
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -85,9 +85,8 @@ static int orangefs_devreq_open(struct inode *inode, struct file *file)
	mutex_lock(&devreq_mutex);

	if (open_access_count == 0) {
		ret = generic_file_open(inode, file);
		if (ret == 0)
		open_access_count++;
		ret = 0;
	} else {
		DUMP_DEVICE_ERROR();
	}