snsc: check return value of class_create
authorZhouyi Zhou <yizhouzhou@ict.ac.cn>
Wed, 10 Aug 2016 08:06:43 +0000 (16:06 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 31 Aug 2016 12:47:54 +0000 (14:47 +0200)
commitc1e8ad231141be21471d2cc624773eb5250c07b3
treeb257365b354e4b3c7a5ff3aca082625297593eac
parent26ec99b105d5d1465fffed563cfe1a90a7b150fd
snsc: check return value of class_create

 return value of class_create should be considered in
module init function.

Signed-off-by: Zhouyi Zhou <zhouzhouyi@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/char/snsc.c