[Piglit] [PATCH] util: Remove duplicate assignment.

Brian Paul brianp at vmware.com
Fri Nov 4 22:28:27 UTC 2016


On 11/04/2016 04:17 PM, Vinson Lee wrote:
> Fix Coverity evaluation order violation defect.
>
> CID: 1374296
> Fixes: e0048f4940f7 ("util: Add piglit_delay_ns() api")
> Signed-off-by: Vinson Lee <vlee at freedesktop.org>
> ---
>   tests/util/piglit-util.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/util/piglit-util.c b/tests/util/piglit-util.c
> index 6becfa664490..6b34c46f8549 100644
> --- a/tests/util/piglit-util.c
> +++ b/tests/util/piglit-util.c
> @@ -619,7 +619,7 @@ piglit_time_get_nano(void)
>   int64_t
>   piglit_delay_ns(int64_t time_ns)
>   {
> -	int64_t start = start = piglit_time_get_nano();
> +	int64_t start = piglit_time_get_nano();
>   	int64_t end;
>
>   #ifdef __linux__
>

Reviewed-by: Brian Paul <brianp at vmware.com>



More information about the Piglit mailing list