Commit 14e384ce authored by Markus Elfring's avatar Markus Elfring Committed by Greg Kroah-Hartman

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: default avatarMarkus Elfring <elfring@users.sourceforge.net>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 5bfd446e
...@@ -155,7 +155,7 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops, ...@@ -155,7 +155,7 @@ int class_register_type(struct obd_ops *dt_ops, struct md_ops *md_ops,
struct lu_device_type *ldt) struct lu_device_type *ldt)
{ {
struct obd_type *type; struct obd_type *type;
int rc = 0; int rc;
/* sanity check */ /* sanity check */
LASSERT(strnlen(name, CLASS_MAX_NAME) < CLASS_MAX_NAME); LASSERT(strnlen(name, CLASS_MAX_NAME) < CLASS_MAX_NAME);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment