Skip to content
Commit 9669f541 authored by Vincent Sanders's avatar Vincent Sanders Committed by Jean Delvare
Browse files

i2c: Remove big kernel lock from i2cdev_open



The BKL is held over a kmalloc so cannot protect anything beyond that.
The two calls before the kmalloc have their own locking.
Improve device open function by removing the now unnecessary ret variable

Signed-off-by: default avatarVincent Sanders <vince@simtec.co.uk>
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent c2e90e9b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment