Skip to content

Commit ea31003

Browse files
piatragregkh
authored andcommitted
firmware_class: Fix whitespace and indentation
Fix checkpatch.pl issues with coding style. Removed whitespace and fixed indentation Signed-off-by: Andrei Oprea <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 6d42d79 commit ea31003

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

drivers/base/firmware_class.c

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ static struct firmware_buf *__allocate_fw_buf(const char *fw_name,
181181
{
182182
struct firmware_buf *buf;
183183

184-
buf = kzalloc(sizeof(*buf) + strlen(fw_name) + 1 , GFP_ATOMIC);
184+
buf = kzalloc(sizeof(*buf) + strlen(fw_name) + 1, GFP_ATOMIC);
185185

186186
if (!buf)
187187
return buf;
@@ -1168,7 +1168,7 @@ _request_firmware(const struct firmware **firmware_p, const char *name,
11681168
**/
11691169
int
11701170
request_firmware(const struct firmware **firmware_p, const char *name,
1171-
struct device *device)
1171+
struct device *device)
11721172
{
11731173
int ret;
11741174

@@ -1196,6 +1196,7 @@ int request_firmware_direct(const struct firmware **firmware_p,
11961196
const char *name, struct device *device)
11971197
{
11981198
int ret;
1199+
11991200
__module_get(THIS_MODULE);
12001201
ret = _request_firmware(firmware_p, name, device,
12011202
FW_OPT_UEVENT | FW_OPT_NO_WARN);
@@ -1276,7 +1277,7 @@ request_firmware_nowait(
12761277
{
12771278
struct firmware_work *fw_work;
12781279

1279-
fw_work = kzalloc(sizeof (struct firmware_work), gfp);
1280+
fw_work = kzalloc(sizeof(struct firmware_work), gfp);
12801281
if (!fw_work)
12811282
return -ENOMEM;
12821283

0 commit comments

Comments
 (0)