cmd: mbr: return false instead of NULL from bool found_key()
found_key() is declared to return bool but returns NULL when strdup() fails. NULL is a pointer constant; while it happens to convert to zero (i.e. false) it is a type mismatch that trips stricter compilers/static analysers. Return false to match the declared return type. Signed-off-by: Naveen Kumar Chaudhary <naveen.osdev@gmail.com>
This commit is contained in:
committed by
Tom Rini
parent
0ccd0a939d
commit
f7b525a8bc