[openib-general] [PATCH][SDP][13/22] Whitespace cleanup in sdp_proc.c

Tom Duffy Tom.Duffy at Sun.COM
Fri Feb 18 16:46:36 PST 2005


Signed-off-by: Tom Duffy <tduffy at sun.com>

Index: linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_proc.c
===================================================================
--- linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_proc.c	(revision 1836)
+++ linux-2.6.10-openib/drivers/infiniband/ulp/sdp/sdp_proc.c	(working copy)
@@ -66,12 +66,10 @@ static int _sdp_proc_read_parse(char *pa
 
 	size = sub_entry->read(page, count, offset, &end_index);
 	if (0 < size) {
-
 		if (0 < end_index) {
 			*start = (char *)end_index;
 			*eof = 0;
-		}
-		else {
+		} else {
 			*start = NULL;
 			*eof = 1;
 		}
@@ -146,7 +144,6 @@ int sdp_main_proc_cleanup(void)
 	 */
 	for (counter = 0; counter < SDP_PROC_ENTRIES; counter++) {
 		sub_entry = &_file_entry_list[counter];
-
 		if (NULL != sub_entry->entry) {
 			remove_proc_entry(sub_entry->name, _dir_root);
 			sub_entry->entry = NULL;
@@ -178,14 +175,12 @@ int sdp_main_proc_init(void)
 	 * validate some assumptions the write parser will be making.
 	 */
 	if (0 && sizeof(s32) != sizeof(char *)) {
-
 		sdp_warn("integers and pointers of a different size <%Zu:%Zu>",
 			 sizeof(s32), sizeof(char *));
 		return -EFAULT;
 	}
 
 	if (NULL != _dir_root) {
-
 		sdp_warn("/proc already initialized!");
 		return -EINVAL;
 	}
@@ -194,7 +189,6 @@ int sdp_main_proc_init(void)
 	 */
 	_dir_root = proc_mkdir(_dir_name_root, proc_net);
 	if (NULL == _dir_root) {
-
 		sdp_warn("Failed to create <%s> proc entry.",
 			 _dir_name_root);
 		return -EINVAL;
@@ -204,7 +198,6 @@ int sdp_main_proc_init(void)
 
 	for (counter = 0; counter < SDP_PROC_ENTRIES; counter++) {
 		sub_entry = &_file_entry_list[counter];
-
 		if (sub_entry->type != counter) {
 			result = -EFAULT;
 			goto error;
@@ -214,7 +207,6 @@ int sdp_main_proc_init(void)
 						     S_IRUGO | S_IWUGO,
 						     _dir_root);
 		if (NULL == sub_entry->entry) {
-
 			sdp_warn("Failed to create <%s> framework proc entry.",
 				 sub_entry->name);
 			result = -EINVAL;




More information about the general mailing list