Staging: comedi: comedi_fops: Change comedi_num_legacy_minors type
authorCheah Kok Cheong <thrust73@gmail.com>
Tue, 7 Mar 2017 18:13:58 +0000 (02:13 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2017 13:08:58 +0000 (14:08 +0100)
commitd1d78d20800f8e1bd41518d45d5a3d604d9b1040
treecb7df19d51651c428d1976c194a76fe0882f13c9
parent2d27ca88f21eaa1fbe1c94bf588ac5130ecaaea7
Staging: comedi: comedi_fops: Change comedi_num_legacy_minors type

Change to unsigned to allow removal of negative value check in
init section. Use smaller data type since the max possible
value currently is 48.

Signed-off-by: Cheah Kok Cheong <thrust73@gmail.com>
Reviewed-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/comedi_fops.c