aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/base
diff options
context:
space:
mode:
authorAndrei Oprea <andrei.br92@gmail.com>2015-03-08 06:41:15 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-03-25 09:36:19 -0400
commitea31003ccb2d684916cb7ebc079437ae85425a6d (patch)
treec8a7ac8a6cd24661390b3bdb43ce6d7d4963a7d5 /drivers/base
parent6d42d79e640fd1cd8fd97d11c8693f8907fc4eac (diff)
firmware_class: Fix whitespace and indentation
Fix checkpatch.pl issues with coding style. Removed whitespace and fixed indentation Signed-off-by: Andrei Oprea <andrei.br92@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/base')
-rw-r--r--drivers/base/firmware_class.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/drivers/base/firmware_class.c b/drivers/base/firmware_class.c
index 6c5c9edf5ff6..710540f5ba7e 100644
--- a/drivers/base/firmware_class.c
+++ b/drivers/base/firmware_class.c
@@ -181,7 +181,7 @@ static struct firmware_buf *__allocate_fw_buf(const char *fw_name,
181{ 181{
182 struct firmware_buf *buf; 182 struct firmware_buf *buf;
183 183
184 buf = kzalloc(sizeof(*buf) + strlen(fw_name) + 1 , GFP_ATOMIC); 184 buf = kzalloc(sizeof(*buf) + strlen(fw_name) + 1, GFP_ATOMIC);
185 185
186 if (!buf) 186 if (!buf)
187 return buf; 187 return buf;
@@ -1168,7 +1168,7 @@ _request_firmware(const struct firmware **firmware_p, const char *name,
1168 **/ 1168 **/
1169int 1169int
1170request_firmware(const struct firmware **firmware_p, const char *name, 1170request_firmware(const struct firmware **firmware_p, const char *name,
1171 struct device *device) 1171 struct device *device)
1172{ 1172{
1173 int ret; 1173 int ret;
1174 1174
@@ -1196,6 +1196,7 @@ int request_firmware_direct(const struct firmware **firmware_p,
1196 const char *name, struct device *device) 1196 const char *name, struct device *device)
1197{ 1197{
1198 int ret; 1198 int ret;
1199
1199 __module_get(THIS_MODULE); 1200 __module_get(THIS_MODULE);
1200 ret = _request_firmware(firmware_p, name, device, 1201 ret = _request_firmware(firmware_p, name, device,
1201 FW_OPT_UEVENT | FW_OPT_NO_WARN); 1202 FW_OPT_UEVENT | FW_OPT_NO_WARN);
@@ -1276,7 +1277,7 @@ request_firmware_nowait(
1276{ 1277{
1277 struct firmware_work *fw_work; 1278 struct firmware_work *fw_work;
1278 1279
1279 fw_work = kzalloc(sizeof (struct firmware_work), gfp); 1280 fw_work = kzalloc(sizeof(struct firmware_work), gfp);
1280 if (!fw_work) 1281 if (!fw_work)
1281 return -ENOMEM; 1282 return -ENOMEM;
1282 1283