]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: env: fw_env: Fix unused-result warning
authorJaehoon Chung <jh80.chung@samsung.com>
Thu, 13 Oct 2022 08:41:21 +0000 (17:41 +0900)
committerTom Rini <trini@konsulko.com>
Thu, 8 Dec 2022 14:25:44 +0000 (09:25 -0500)
commitc059a22b7776dc4306acb73cbeb78e841cf60b84
treeaaa2f77de5e4136cdd6533452f122bc84712c1dc
parent2b2e9127ccdacdd1170dfcd2a4f1794ff9446fb1
tools: env: fw_env: Fix unused-result warning

Fix unused-result warning about fread.

tools/env/fw_env.c: In function ‘find_nvmem_device’:
tools/env/fw_env.c:1751:3: warning: ignoring return value of ‘fread’, declared with attribute warn_unused_result [-Wunused-result]
 1751 |   fread(buf, sizeof(buf), 1, fp);
      |   ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
tools/env/fw_env.c