]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
staging: sm750fb: remove unnecessary initializations
authorAhmet Sezgin Duran <ahmet@sezginduran.net>
Mon, 11 May 2026 17:17:45 +0000 (20:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 21 May 2026 09:20:54 +0000 (11:20 +0200)
Remove two instances of `de_ctrl = 0` initializations since the
variable is overridden unconditionally before being used.

Signed-off-by: Ahmet Sezgin Duran <ahmet@sezginduran.net>
Link: https://patch.msgid.link/20260511171745.79646-1-ahmet@sezginduran.net
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/sm750fb/sm750_accel.c

index ec2f0a6aa57d89f36cc11c54959d881791c5378c..5ba1af274730d0169570b398504775857bda6228 100644 (file)
@@ -159,7 +159,6 @@ int sm750_hw_copyarea(struct lynx_accel *accel,
 
        direction = LEFT_TO_RIGHT;
        /* Direction of ROP2 operation: 1 = Left to Right, (-1) = Right to Left */
-       de_ctrl = 0;
 
        /* If source and destination are the same surface, need to check for overlay cases */
        if (source_base == dest_base && source_pitch == dest_pitch) {
@@ -326,7 +325,7 @@ int sm750_hw_imageblit(struct lynx_accel *accel, const char *src_buf,
        unsigned int bytes_per_scan;
        unsigned int words_per_scan;
        unsigned int bytes_remain;
-       unsigned int de_ctrl = 0;
+       unsigned int de_ctrl;
        unsigned char remain[4];
        int i, j;
        int ret;