Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Arm Trusted Firmware
Commits
406a4ade
Commit
406a4ade
authored
8 years ago
by
davidcunado-arm
Committed by
GitHub
8 years ago
Browse files
Options
Download
Plain Diff
Merge pull request #840 from dp-arm/dp/cppcheck-fixes
Fix minor issues found by cppcheck
parents
78e9e18f
dae695ab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
drivers/io/io_semihosting.c
+4
-4
drivers/io/io_semihosting.c
with
4 additions
and
4 deletions
+4
-4
drivers/io/io_semihosting.c
View file @
406a4ade
...
...
@@ -95,7 +95,7 @@ static int sh_file_open(io_dev_info_t *dev_info __unused,
const
uintptr_t
spec
,
io_entity_t
*
entity
)
{
int
result
=
-
ENOENT
;
long
sh_result
=
-
1
;
long
sh_result
;
const
io_file_spec_t
*
file_spec
=
(
const
io_file_spec_t
*
)
spec
;
assert
(
file_spec
!=
NULL
);
...
...
@@ -151,7 +151,7 @@ static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
size_t
*
length_read
)
{
int
result
=
-
ENOENT
;
long
sh_result
=
-
1
;
long
sh_result
;
size_t
bytes
=
length
;
long
file_handle
;
...
...
@@ -176,7 +176,7 @@ static int sh_file_read(io_entity_t *entity, uintptr_t buffer, size_t length,
static
int
sh_file_write
(
io_entity_t
*
entity
,
const
uintptr_t
buffer
,
size_t
length
,
size_t
*
length_written
)
{
long
sh_result
=
-
1
;
long
sh_result
;
long
file_handle
;
size_t
bytes
=
length
;
...
...
@@ -197,7 +197,7 @@ static int sh_file_write(io_entity_t *entity, const uintptr_t buffer,
/* Close a file on the semi-hosting device */
static
int
sh_file_close
(
io_entity_t
*
entity
)
{
long
sh_result
=
-
1
;
long
sh_result
;
long
file_handle
;
assert
(
entity
!=
NULL
);
...
...
This diff is collapsed.
Click to expand it.
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
Menu
Projects
Groups
Snippets
Help