staging: dgnc: remove struct member magic numbers
authorTobin C. Harding <me@tobin.cc>
Mon, 27 Mar 2017 23:28:38 +0000 (10:28 +1100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Mar 2017 07:37:10 +0000 (09:37 +0200)
commit0053fe0eba9f5d6a992e0e4b45595a55809fc27b
tree26237acf170f0ffff9cc65a36a4a308c8560eea9
parent510616521f1c1ce68da84bbcceab61b35abdce6f
staging: dgnc: remove struct member magic numbers

Driver uses magic number members within structs, this is an antiquated
method of catching data errors. We don't do things that way any more.

Remove magic number struct members. Remove all checks to magic
numbers.

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_cls.c
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_driver.h
drivers/staging/dgnc/dgnc_mgmt.c
drivers/staging/dgnc/dgnc_neo.c
drivers/staging/dgnc/dgnc_tty.c