Skip to content
Snippets Groups Projects
Commit cba34aaf authored by Stefan Roese's avatar Stefan Roese
Browse files

cfi_flash: Simplify flash_get_info()


This patch removes an unecessary check in the return statement. This is
not needed, since "info" is initializes to NULL. And "info" will not be
written to again, if the flash address is not found.

Additionally "info" is not initialized to "0" but to "NULL".

Signed-off-by: default avatarStefan Roese <sr@denx.de>
parent ff377b1c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment