• Florian Tobias Schandinat's avatar
    Clean the hardware cursor handling up. · c604b790
    Florian Tobias Schandinat authored
    The most notable change is that it no longer buffers the values in
    viacursor but uses the ones in cursor instead as they are guaranteed to be
    always valid.
    
    Furthermore it uses local instead global variables where possible, moves
    the cursor variable in shared as only one hardware cursor is supported and
    returns an error if memory allocation fails.  Last but not least it fixes
    a too small buffer (as u32 has only 4 and not 32 bytes) but this did not
    produce any known problems.
    
    This is mostly a code cleanup, no negative runtime changes are expected.
    Signed-off-by: default avatarFlorian Tobias Schandinat <FlorianSchandinat@gmx.de>
    Cc: Scott Fang <ScottFang@viatech.com.cn>
    Cc: Joseph Chan <JosephChan@via.com.tw>
    Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
    c604b790
accel.c 14 KB