From: bobijam Date: Tue, 5 Aug 2008 03:49:50 +0000 (+0000) Subject: trim trailing white spaces. X-Git-Tag: v1_9_50~76 X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=commitdiff_plain;h=abe3c443e613c278bef331605fb1d8a1ba8e7999 trim trailing white spaces. --- diff --git a/lustre/obdclass/linux/linux-sysctl.c b/lustre/obdclass/linux/linux-sysctl.c index 6a1e4c0..10f8eb9 100644 --- a/lustre/obdclass/linux/linux-sysctl.c +++ b/lustre/obdclass/linux/linux-sysctl.c @@ -106,9 +106,9 @@ int LL_PROC_PROTO(proc_memory_alloc) *lenp = 0; return 0; } - if (write) + if (write) return -EINVAL; - + len = snprintf(buf, sizeof(buf), LPU64"\n", obd_memory_sum()); if (len > *lenp) len = *lenp; @@ -221,7 +221,7 @@ int LL_PROC_PROTO(proc_max_dirty_pages_in_mb) len = lprocfs_read_frac_helper(buf, sizeof(buf), *(unsigned int*)table->data, 1 << (20 - CFS_PAGE_SHIFT)); - if (len > *lenp) + if (len > *lenp) len = *lenp; buf[len] = '\0'; if (copy_to_user(buffer, buf, len)) @@ -243,7 +243,7 @@ int LL_PROC_PROTO(proc_alloc_fail_rate) return 0; } if (write) { - rc = lprocfs_write_frac_helper(buffer, *lenp, + rc = lprocfs_write_frac_helper(buffer, *lenp, (unsigned int*)table->data, OBD_ALLOC_FAIL_MULT); } else {