diff --git a/runtime/starpu/codelets/codelet_ztsmqr.c b/runtime/starpu/codelets/codelet_ztsmqr.c
index f814bf858d8e4367bf86ca25cd3266efc675779d..8cfa12803a19361918145499979d0732df07f5bb 100644
--- a/runtime/starpu/codelets/codelet_ztsmqr.c
+++ b/runtime/starpu/codelets/codelet_ztsmqr.c
@@ -633,7 +633,6 @@ magma_zparfb_gpu(magma_side_t side, magma_trans_t trans,
                         zone,
                         (cuDoubleComplex*)WORK  /* K*N1  */, LDWORK);
 
-            WORKC = NULL;
             if (WORKC == NULL) {
                 /* W = op(T) * W */
                 cublasZtrmm( morse_lapack_const(MagmaLeft), morse_lapack_const(MagmaUpper),
@@ -714,7 +713,6 @@ magma_zparfb_gpu(magma_side_t side, magma_trans_t trans,
                         zone,
                         (cuDoubleComplex*)WORK  /* M1*K  */, LDWORK);
 
-            WORKC = NULL;
             if (WORKC == NULL) {
                 /* W = W * op(T) */
                 cublasZtrmm( morse_lapack_const(MagmaRight), morse_lapack_const(MagmaUpper),