Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
F
FMC Software Support
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Projects
FMC Software Support
Commits
63e83890
Commit
63e83890
authored
Dec 16, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmc: fixes from coccicheck and checkpatch
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
24ce6c09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
fmc-core.c
drivers/fmc/fmc-core.c
+5
-1
fru-parse.c
drivers/fmc/fru-parse.c
+1
-1
No files found.
drivers/fmc/fmc-core.c
View file @
63e83890
...
...
@@ -207,7 +207,7 @@ err_name:
err_i2c:
devm_kfree
(
&
carrier
->
dev
,
slot
);
err_alloc:
ida_simple_remove
(
&
fmc_slot_ida
,
slot
->
dev
.
id
);
ida_simple_remove
(
&
fmc_slot_ida
,
id
);
err_ida:
return
ERR_PTR
(
err
);
}
...
...
@@ -219,11 +219,15 @@ err_ida:
*/
static
void
fmc_carrier_del_slot
(
struct
fmc_slot
*
slot
)
{
int
id
;
if
(
IS_ERR_OR_NULL
(
slot
))
return
;
id
=
slot
->
dev
.
id
;
fmc_slot_eeprom_del
(
slot
);
device_unregister
(
&
slot
->
dev
);
ida_simple_remove
(
&
fmc_slot_ida
,
id
);
}
/**
...
...
drivers/fmc/fru-parse.c
View file @
63e83890
...
...
@@ -6,7 +6,7 @@
#include <linux/version.h>
#if
LINUX_VERSION_CODE < KERNEL_VERSION(3,11,0)
#if
KERNEL_VERSION(3, 11, 0) > LINUX_VERSION_CODE
/*
* On kernel 3.11 and greater this is included
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment