Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
Simple PCIe FMC carrier SPEC
Manage
Activity
Members
Labels
Plan
Issues
50
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Projects
Simple PCIe FMC carrier SPEC
Commits
3a188bd0
Commit
3a188bd0
authored
5 years ago
by
Federico Vaga
Browse files
Options
Downloads
Patches
Plain Diff
sw:drv: apply coccicheck suggestions
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
d9843590
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
software/kernel/spec-core.c
+2
-11
2 additions, 11 deletions
software/kernel/spec-core.c
with
2 additions
and
11 deletions
software/kernel/spec-core.c
+
2
−
11
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
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment