Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
3a188bd0
Commit
3a188bd0
authored
Sep 26, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv: apply coccicheck suggestions
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d9843590
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
11 deletions
+2
-11
spec-core.c
software/kernel/spec-core.c
+2
-11
No files found.
software/kernel/spec-core.c
View file @
3a188bd0
...
...
@@ -82,16 +82,9 @@ static ssize_t spec_dbg_fw_write(struct file *file,
return
count
;
}
static
int
spec_dbg_fw_open
(
struct
inode
*
inode
,
struct
file
*
file
)
{
file
->
private_data
=
inode
->
i_private
;
return
0
;
}
static
const
struct
file_operations
spec_dbg_fw_ops
=
{
.
owner
=
THIS_MODULE
,
.
open
=
s
pec_dbg_fw
_open
,
.
open
=
s
imple
_open
,
.
write
=
spec_dbg_fw_write
,
};
...
...
@@ -279,12 +272,10 @@ static int spec_gpio_init_table(struct spec_gn412x *spec_gn412x)
struct
gpiod_lookup_table
*
lookup
;
int
err
=
0
;
lookup
=
k
zalloc
(
spec_gpiod_table_size
(),
GFP_KERNEL
);
lookup
=
k
memdup
(
&
spec_gpiod_table
,
spec_gpiod_table_size
(),
GFP_KERNEL
);
if
(
!
lookup
)
return
-
ENOMEM
;
memcpy
(
lookup
,
&
spec_gpiod_table
,
spec_gpiod_table_size
());
lookup
->
dev_id
=
kstrdup
(
dev_name
(
&
spec_gn412x
->
pdev
->
dev
),
GFP_KERNEL
);
if
(
!
lookup
->
dev_id
)
goto
err_dup
;
...
...
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