Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Shawn Webb
Fwupd
Commits
37906f6a
Commit
37906f6a
authored
Nov 09, 2017
by
Richard Hughes
Browse files
trivial: Fix NULL/FALSE confusion in the dfu plugin
parent
78c84112
Changes
1
Hide whitespace changes
Inline
Side-by-side
plugins/dfu/dfu-target-avr.c
View file @
37906f6a
...
...
@@ -449,7 +449,7 @@ dfu_target_avr_upload_element (DfuTarget *target,
dfu_target_get_alt_setting
(
target
),
cancellable
,
error
))
return
FALSE
;
return
NULL
;
/* verify the element isn't lower than the flash area */
sector
=
dfu_target_get_sector_default
(
target
);
...
...
@@ -458,14 +458,14 @@ dfu_target_avr_upload_element (DfuTarget *target,
FWUPD_ERROR
,
FWUPD_ERROR_NOT_SUPPORTED
,
"no sector defined for target"
);
return
FALSE
;
return
NULL
;
}
if
(
address
<
dfu_sector_get_address
(
sector
))
{
g_set_error_literal
(
error
,
FWUPD_ERROR
,
FWUPD_ERROR_INVALID_FILE
,
"cannot read from below sector start"
);
return
FALSE
;
return
NULL
;
}
/* the flash starts at 0x80000000, but is indexed from zero */
...
...
Write
Preview
Supports
Markdown
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