Corrected incorrect check of class_device_create() return code validity.