anv: remove stray ; after if
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>
Thu, 25 Feb 2016 21:00:09 +0000 (22:00 +0100)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 27 Feb 2016 00:05:28 +0000 (16:05 -0800)
Both logic and indentation suggests that the ; were not intended here.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/anv_cmd_buffer.c

index b060828cf61b65806369846c663c2df932d4356b..827c3ed4142dbf77c01c5a23bc3da63bf82e0a79 100644 (file)
@@ -465,7 +465,7 @@ void anv_CmdSetViewport(
    ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
 
    const uint32_t total_count = firstViewport + viewportCount;
-   if (cmd_buffer->state.dynamic.viewport.count < total_count);
+   if (cmd_buffer->state.dynamic.viewport.count < total_count)
       cmd_buffer->state.dynamic.viewport.count = total_count;
 
    memcpy(cmd_buffer->state.dynamic.viewport.viewports + firstViewport,
@@ -483,7 +483,7 @@ void anv_CmdSetScissor(
    ANV_FROM_HANDLE(anv_cmd_buffer, cmd_buffer, commandBuffer);
 
    const uint32_t total_count = firstScissor + scissorCount;
-   if (cmd_buffer->state.dynamic.scissor.count < total_count);
+   if (cmd_buffer->state.dynamic.scissor.count < total_count)
       cmd_buffer->state.dynamic.scissor.count = total_count;
 
    memcpy(cmd_buffer->state.dynamic.scissor.scissors + firstScissor,