cdev->name is initialized to a static string, so no need to check if it's non NULL. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>