^-- SC2155: Declare and assign separately to avoid masking return values.

Cc: Daniel Vetter <[email protected]>
Cc: Jani Nikula <[email protected]>
Cc: Joonas Lahtinen <[email protected]>
Signed-off-by: Rodrigo Vivi <[email protected]>
---
 qf | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/qf b/qf
index cbe8a69e1a83..0bd6ebf1370d 100755
--- a/qf
+++ b/qf
@@ -154,14 +154,16 @@ function branch_init
 
 function quilt_clean_check
 {
-       local current_top=$(quilt top)
+       local current_top quilt_changes
+
+       current_top=$(quilt top)
 
        if [[ -n $(quilt unapplied $current_top) ]] ; then
                echo Unapplied quilt patches, aborting.
                exit 9
        fi
 
-       local quilt_changes=$(cd patches ; git status --porcelain)
+       quilt_changes=$(cd patches ; git status --porcelain)
 
        if [[ -n $quilt_changes ]] ; then
                echo Uncommitted changes in the quilt patch repo, aborting.
-- 
2.13.2

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to