diff options
author | Shuah Khan <skhan@linuxfoundation.org> | 2021-07-07 21:18:27 -0600 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-07-21 16:11:42 +0200 |
commit | fe968ca2cac91888310b143a483123c84906e3fc (patch) | |
tree | c17859dce5b78bb4f5c139f7fb8f6d4fe979d477 /tools/iio | |
parent | 16b0dd40922995bb13f140b025bb760b6c5224b0 (diff) | |
download | linux-fe968ca2cac91888310b143a483123c84906e3fc.tar.gz linux-fe968ca2cac91888310b143a483123c84906e3fc.tar.bz2 linux-fe968ca2cac91888310b143a483123c84906e3fc.zip |
selftests: firmware: Fix ignored return val of asprintf() warn
Fix the following ingonred return val of asprintf() warn during
build:
cc -Wall -O2 fw_namespace.c -o ../tools/testing/selftests/firmware/fw_namespace
fw_namespace.c: In function ‘main’:
fw_namespace.c:132:2: warning: ignoring return value of ‘asprintf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
132 | asprintf(&fw_path, "/lib/firmware/%s", fw_name);
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Link: https://lore.kernel.org/r/20210708031827.51293-1-skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/iio')
0 files changed, 0 insertions, 0 deletions