]> asedeno.scripts.mit.edu Git - linux.git/commit
staging: fbtft: Replace magic number with constant
authorTobin C. Harding <me@tobin.cc>
Wed, 15 Feb 2017 03:27:24 +0000 (14:27 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:16:59 +0000 (09:16 +0100)
commitdbc364054c2e2c7008129237cdaa558656de104d
tree2bdc22b2b79376e5980a84df070b6df6b522a594
parent8414fe11ba2ff2422c4b73bbef3b035a2562c88a
staging: fbtft: Replace magic number with constant

Current call to strncmp() uses a magic number. There is a compile
time constant defined for this buffer, included and used already at
other sites in the file.

Remove magic number. Replace with pre-existing compile time constant.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/fbtft/fbtft_device.c