Input: random formatting fixes
Fixes for some coding style issues reported by scripts/checkpatch.pl utility. Signed-off-by: Baodong Chen <chenbdchenbd@gmail.com> Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
This commit is contained in:
parent
112b51cfa2
commit
41091ad0b8
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user