[clinfo] 145/148: Remove dead increments (clang-scan)

Andreas Beckmann anbe at moszumanska.debian.org
Mon Nov 17 14:09:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

anbe pushed a commit to branch clinfo
in repository clinfo.

commit 2f8812aaf767b6128b54c3d4934529caead75018
Author: Giuseppe Bilotta <giuseppe.bilotta at gmail.com>
Date:   Thu Nov 13 08:15:31 2014 +0100

    Remove dead increments (clang-scan)
---
 src/clinfo.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/clinfo.c b/src/clinfo.c
index 856b6c3..b02b181 100644
--- a/src/clinfo.c
+++ b/src/clinfo.c
@@ -740,7 +740,7 @@ int device_info_mem(cl_device_id dev, cl_device_info param, const char *pname,
 	if (!had_error) {
 		szval += sprintf(strbuf, "%" PRIu64, val);
 		if (output_mode == CLINFO_HUMAN && val > 1024)
-			szval += strbuf_mem(val, szval);
+			strbuf_mem(val, szval);
 	}
 	show_strbuf(pname, 0);
 	return had_error;
@@ -755,7 +755,7 @@ int device_info_mem_int(cl_device_id dev, cl_device_info param, const char *pnam
 	if (!had_error) {
 		szval += sprintf(strbuf, "%u", val);
 		if (output_mode == CLINFO_HUMAN && val > 1024)
-			szval += strbuf_mem(val, szval);
+			strbuf_mem(val, szval);
 	}
 	show_strbuf(pname, 0);
 	return had_error;
@@ -1385,7 +1385,7 @@ int device_info_qprop(cl_device_id dev, cl_device_info param, const char *pname,
 		}
 		if (output_mode == CLINFO_HUMAN && param == CL_DEVICE_QUEUE_PROPERTIES &&
 			dev_has_intel_local_thread(chk))
-			szval += sprintf(strbuf + szval, "\n%s" I2_STR "%s",
+			sprintf(strbuf + szval, "\n%s" I2_STR "%s",
 				line_pfx, "Local thread execution (Intel)", bool_str[CL_TRUE]);
 	}
 	show_strbuf(pname, 0);

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-opencl/clinfo.git



More information about the Pkg-opencl-commits mailing list