From ef10ef564df9d15c0522aaf0e6b3b9681ef78207 Mon Sep 17 00:00:00 2001 From: Mike Rapoport Date: Sun, 26 Apr 2009 11:49:30 +0300 Subject: [PATCH] --- yaml --- r: 144269 b: refs/heads/master c: aa61d558f0f9f8b303b9cab1e51e9886896ba1a3 h: refs/heads/master i: 144267: 6bc22dd1bc7ae58c1fe8bbbea32d81f63f696a33 v: v3 --- [refs] | 2 +- trunk/drivers/regulator/virtual.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/[refs] b/[refs] index 2cf1eeca08e8..3b52915bf580 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 53032dafc6b93ac178ca2340ff8eb4ee2b3d1a92 +refs/heads/master: aa61d558f0f9f8b303b9cab1e51e9886896ba1a3 diff --git a/trunk/drivers/regulator/virtual.c b/trunk/drivers/regulator/virtual.c index 3d08348584e1..71403fa3ffa1 100644 --- a/trunk/drivers/regulator/virtual.c +++ b/trunk/drivers/regulator/virtual.c @@ -230,13 +230,13 @@ static ssize_t set_mode(struct device *dev, struct device_attribute *attr, * sysfs_streq() doesn't need the \n's, but we add them so the strings * will be shared with show_mode(), above. */ - if (sysfs_streq(buf, "fast\n") == 0) + if (sysfs_streq(buf, "fast\n")) mode = REGULATOR_MODE_FAST; - else if (sysfs_streq(buf, "normal\n") == 0) + else if (sysfs_streq(buf, "normal\n")) mode = REGULATOR_MODE_NORMAL; - else if (sysfs_streq(buf, "idle\n") == 0) + else if (sysfs_streq(buf, "idle\n")) mode = REGULATOR_MODE_IDLE; - else if (sysfs_streq(buf, "standby\n") == 0) + else if (sysfs_streq(buf, "standby\n")) mode = REGULATOR_MODE_STANDBY; else { dev_err(dev, "Configuring invalid mode\n");