staging: lustre: Delete an unnecessary variable initialisation in class_register_type()
The variable "rc" will be eventually set to an error return code in the class_register_type() function. Thus let us omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring <elfring@users.sourceforge.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
5bfd446e7b
commit
14e384ce75
@ -155,7 +155,7 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops,
|
||||
struct lu_device_type *ldt)
|
||||
{
|
||||
struct obd_type *type;
|
||||
int rc = 0;
|
||||
int rc;
|
||||
|
||||
/* sanity check */
|
||||
LASSERT(strnlen(name, CLASS_MAX_NAME) < CLASS_MAX_NAME);
|
||||
|
Loading…
Reference in New Issue
Block a user