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
53382ae0
Commit
53382ae0
authored
4 years ago
by
Federico Vaga
Browse files
Options
Downloads
Patches
Plain Diff
lib: FRU cast pointers directly to their target
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
a005201f
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
include/uapi/linux/ipmi/fru.h
+2
-2
2 additions, 2 deletions
include/uapi/linux/ipmi/fru.h
with
2 additions
and
2 deletions
include/uapi/linux/ipmi/fru.h
+
2
−
2
View file @
53382ae0
...
...
@@ -125,7 +125,7 @@ static inline int fru_is_eof(struct fru_type_length *tl)
/* Public checksum verifiers */
static
inline
int
fru_header_cksum_ok
(
struct
fru_common_header
*
header
)
{
uint8_t
*
ptr
=
(
void
*
)
header
;
uint8_t
*
ptr
=
(
uint8_t
*
)
header
;
int
i
,
sum
;
for
(
i
=
sum
=
0
;
i
<
sizeof
(
*
header
);
i
++
)
...
...
@@ -136,7 +136,7 @@ static inline int fru_header_cksum_ok(struct fru_common_header *header)
static
inline
int
fru_bia_cksum_ok
(
struct
fru_board_info_area
*
bia
)
{
uint8_t
*
ptr
=
(
void
*
)
bia
;
uint8_t
*
ptr
=
(
uint8_t
*
)
bia
;
int
i
,
sum
;
for
(
i
=
sum
=
0
;
i
<
8
*
bia
->
area_len
;
i
++
)
...
...
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