Skip to content
  • Simran Singhal's avatar
    b3ac2b94
    Compress lines for immediate return · b3ac2b94
    Simran Singhal authored
    
    
    Compress two lines into a single line if immediate return statement is found.
    
    It also remove variables progress, val, data, ret and sock
    as they are no longer needed.
    
    Remove space between function "mixer_load" and '(' to fix the
    checkpatch.pl error:-
    ERROR: space prohibited between function name and open parenthesis '('
    
    Done using following coccinelle script:
    @@
    local idexpression ret;
    expression e;
    @@
    
    -ret =
    +return
         e;
    -return ret;
    
    Signed-off-by: default avatarSimran Singhal <singhalsimran0@gmail.com>
    Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    Message-Id: <20200401165314.GA3213@simran-Inspiron-5558>
    [lv: in handle_aiocb_write_zeroes_unmap() move "int ret" inside the #ifdef]
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
    b3ac2b94
    Compress lines for immediate return
    Simran Singhal authored
    
    
    Compress two lines into a single line if immediate return statement is found.
    
    It also remove variables progress, val, data, ret and sock
    as they are no longer needed.
    
    Remove space between function "mixer_load" and '(' to fix the
    checkpatch.pl error:-
    ERROR: space prohibited between function name and open parenthesis '('
    
    Done using following coccinelle script:
    @@
    local idexpression ret;
    expression e;
    @@
    
    -ret =
    +return
         e;
    -return ret;
    
    Signed-off-by: default avatarSimran Singhal <singhalsimran0@gmail.com>
    Reviewed-by: default avatarStefan Hajnoczi <stefanha@redhat.com>
    Message-Id: <20200401165314.GA3213@simran-Inspiron-5558>
    [lv: in handle_aiocb_write_zeroes_unmap() move "int ret" inside the #ifdef]
    Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
Loading