Whamcloud - gitweb
land 0.5.20.3 b_devel onto HEAD (b_devel will remain)
[fs/lustre-release.git] / lustre / obdecho / lproc_echo.c
index bb2870a..6a16001 100644 (file)
@@ -33,9 +33,10 @@ int rd_fstype(char* page, char **start, off_t off, int count, int *eof,
               void *data)
 {
         struct obd_device* dev = (struct obd_device*)data;
-        int rc = snprintf(page, count, "%s\n", dev->u.echo.eo_fstype);
+        
+        LASSERT(dev != NULL);
         *eof = 1;
-        return rc;
+        return snprintf(page, count, "%s\n", dev->u.echo.eo_fstype);
 }
 
 struct lprocfs_vars lprocfs_obd_vars[] = {