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

Commit 41091ad0 authored by Baodong Chen's avatar Baodong Chen Committed by Dmitry Torokhov
Browse files

Input: random formatting fixes



Fixes for some coding style issues reported by scripts/checkpatch.pl
utility.

Signed-off-by: default avatarBaodong Chen <chenbdchenbd@gmail.com>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 112b51cf
Loading
Loading
Loading
Loading
+8 −6
Original line number Diff line number Diff line
@@ -74,8 +74,10 @@ static const struct ff_envelope *get_envelope(const struct ff_effect *effect)
	switch (effect->type) {
	case FF_PERIODIC:
		return &effect->u.periodic.envelope;

	case FF_CONSTANT:
		return &effect->u.constant.envelope;

	default:
		return &empty_envelope;
	}
+4 −5
Original line number Diff line number Diff line
@@ -551,17 +551,16 @@ static int mousedev_open(struct inode *inode, struct file *file)
		return -ENODEV;

	error = mutex_lock_interruptible(&mousedev_table_mutex);
	if (error) {
	if (error)
		return error;
	}

	mousedev = mousedev_table[i];
	if (mousedev)
		get_device(&mousedev->dev);
	mutex_unlock(&mousedev_table_mutex);

	if (!mousedev) {
	if (!mousedev)
		return -ENODEV;
	}

	client = kzalloc(sizeof(struct mousedev_client), GFP_KERNEL);
	if (!client) {
@@ -1088,7 +1087,7 @@ static int __init mousedev_init(void)
#ifdef CONFIG_INPUT_MOUSEDEV_PSAUX
	error = misc_register(&psaux_mouse);
	if (error)
		pr_warning("could not register psaux device, error: %d\n",
		pr_warn("could not register psaux device, error: %d\n",
			   error);
	else
		psaux_registered = 1;
+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

+1 −1

File changed.

Contains only whitespace changes.

+2 −2

File changed.

Contains only whitespace changes.

Loading