summaryrefslogtreecommitdiff
path: root/drivers/platform/x86/alienware-wmi.c
diff options
context:
space:
mode:
authorMario Limonciello <mario_limonciello@dell.com>2016-02-03 00:38:57 +0300
committerDarren Hart <dvhart@linux.intel.com>2016-02-07 23:01:33 +0300
commitec5eeadc44bf05a8619627d6882fdf5775c19396 (patch)
treedf78d93f874ef349a9a2d17ec596f06e85a363c5 /drivers/platform/x86/alienware-wmi.c
parentb332f82e3868bc191914adfb1caadcc77c076df2 (diff)
downloadlinux-ec5eeadc44bf05a8619627d6882fdf5775c19396.tar.xz
alienware-wmi: whitespace improvements
These were some items that were pointed out in previous patches that weren't caught be previous reviewers, but should be applied to other parts of the driver as well. Signed-off-by: Mario Limonciello <mario_limonciello@dell.com> [dvhart: reverted a couple incorrect line wrapping changes] Signed-off-by: Darren Hart <dvhart@linux.intel.com>
Diffstat (limited to 'drivers/platform/x86/alienware-wmi.c')
-rw-r--r--drivers/platform/x86/alienware-wmi.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/drivers/platform/x86/alienware-wmi.c b/drivers/platform/x86/alienware-wmi.c
index 275a56d47e56..005629447b0c 100644
--- a/drivers/platform/x86/alienware-wmi.c
+++ b/drivers/platform/x86/alienware-wmi.c
@@ -229,7 +229,7 @@ static u8 global_brightness;
/*
* Helpers used for zone control
-*/
+ */
static int parse_rgb(const char *buf, struct platform_zone *zone)
{
long unsigned int rgb;
@@ -269,7 +269,7 @@ static struct platform_zone *match_zone(struct device_attribute *attr)
/*
* Individual RGB zone control
-*/
+ */
static int alienware_update_led(struct platform_zone *zone)
{
int method_id;
@@ -342,7 +342,7 @@ static ssize_t zone_set(struct device *dev, struct device_attribute *attr,
/*
* LED Brightness (Global)
-*/
+ */
static int wmax_brightness(int brightness)
{
acpi_status status;
@@ -386,7 +386,7 @@ static struct led_classdev global_led = {
/*
* Lighting control state device attribute (Global)
-*/
+ */
static ssize_t show_control_state(struct device *dev,
struct device_attribute *attr, char *buf)
{
@@ -622,11 +622,7 @@ static int create_hdmi(struct platform_device *dev)
ret = sysfs_create_group(&dev->dev.kobj, &hdmi_attribute_group);
if (ret)
- goto error_create_hdmi;
- return 0;
-
-error_create_hdmi:
- remove_hdmi(dev);
+ remove_hdmi(dev);
return ret;
}