]> git.baikalelectronics.ru Git - kernel.git/commit
Tools: hv: remove unused bytes_written from kvp_update_file()
authorVitaly Kuznetsov <vkuznets@redhat.com>
Sat, 10 Jan 2015 06:18:52 +0000 (22:18 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Jan 2015 17:17:57 +0000 (09:17 -0800)
commit430af59382a3fba7524b4dfd9bf46ea45b137cb5
tree964120896252a110c17b0b92138d92c2a8203ebf
parent896155e10dcf29eae2bdd55fc68a0dc3be677f60
Tools: hv: remove unused bytes_written from kvp_update_file()

fwrite() does not actually return the number of bytes written and
this value is being ignored anyway and ferror() is being called to
check for an error. As we assign to this variable and never use it
we get the following compile-time warning:
hv_kvp_daemon.c:149:9: warning: variable .bytes_written. set but not used [-Wunused-but-set-variable]
Remove bytes_written completely.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/hv/hv_kvp_daemon.c