diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-07-21 15:10:35 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-07-25 15:31:43 +0100 |
commit | d5ce79ff20914dd187c25d000b6a8a25a47d7ebe (patch) | |
tree | 81a3fe6b4f54515e8432ba667885bc796a4ecd17 /usr | |
parent | 3103de8cd4e862c48a02327a21aec459c2c7dbb0 (diff) | |
download | op-kernel-dev-d5ce79ff20914dd187c25d000b6a8a25a47d7ebe.zip op-kernel-dev-d5ce79ff20914dd187c25d000b6a8a25a47d7ebe.tar.gz |
mfd: tc6387xb: Remove unnecessary braces and correct style warnings
This is part of an effort to clean-up the MFD subsystem.
WARNING: braces {} are not necessary for single statement blocks
+ if (!iomem) {
+ return -EINVAL;
+ }
WARNING: sizeof *tc6387xb should be sizeof(*tc6387xb)
+ tc6387xb = kzalloc(sizeof *tc6387xb, GFP_KERNEL);
WARNING: Prefer [subsystem eg: netdev]_info([subsystem]dev, ... then dev_info(dev, ... then pr_info(... to printk(KERN_INFO ...
+ printk(KERN_INFO "Toshiba tc6387xb initialised\n");
total: 0 errors, 3 warnings, 242 lines checked
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'usr')
0 files changed, 0 insertions, 0 deletions