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

Commit bb57fc64 authored by Andre Noll's avatar Andre Noll Committed by Neil Brown
Browse files

md: md_ioctl(): Fix misleading indentation.



Signed-off-by: default avatarAndre Noll <maan@systemlinux.org>
Signed-off-by: default avatarNeil Brown <neilb@suse.de>
parent 0529613a
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -4973,14 +4973,12 @@ static int md_ioctl(struct inode *inode, struct file *file,
	 * here and hit the 'default' below, so only disallow
	 * 'md' ioctls, and switch to rw mode if started auto-readonly.
	 */
	if (_IOC_TYPE(cmd) == MD_MAJOR &&
	    mddev->ro && mddev->pers) {
	if (_IOC_TYPE(cmd) == MD_MAJOR && mddev->ro && mddev->pers) {
		if (mddev->ro == 2) {
			mddev->ro = 0;
			sysfs_notify(&mddev->kobj, NULL, "array_state");
			set_bit(MD_RECOVERY_NEEDED, &mddev->recovery);
			md_wakeup_thread(mddev->thread);

		} else {
			err = -EROFS;
			goto abort_unlock;