Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
FMC Software Support
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
FMC Software Support
Commits
523f524d
Commit
523f524d
authored
2 years ago
by
Vaibhav Gupta
Browse files
Options
Downloads
Patches
Plain Diff
drivers: eeprom: Don't use ternary operator
Signed-off-by:
Vaibhav Gupta
<
vaibhav.gupta@cern.ch
>
parent
43d99d5f
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
drivers/fmc/fmc-eeprom.c
+1
-1
1 addition, 1 deletion
drivers/fmc/fmc-eeprom.c
with
1 addition
and
1 deletion
drivers/fmc/fmc-eeprom.c
+
1
−
1
View file @
523f524d
...
...
@@ -100,7 +100,7 @@ int fmc_nvmem_device_find_match(struct device *dev, const void *data)
const
char
*
s1
=
dev_name
(
dev
);
const
char
*
s2
=
(
const
char
*
)
data
;
return
memcmp
(
s1
,
s2
,
strlen
(
s2
))
?
false
:
true
;
return
!
memcmp
(
s1
,
s2
,
strlen
(
s2
));
}
/**
...
...
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