[openib-general] [PATCH][SDP][19/33] Fix comment style in sdp_pass.c

Tom Duffy Tom.Duffy at Sun.COM
Thu Feb 17 14:11:44 PST 2005


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

--- drivers/infiniband/ulp/sdp-orig/sdp_pass.c	2005-02-15 16:33:46.238009000 -0800
+++ drivers/infiniband/ulp/sdp/sdp_pass.c	2005-02-17 11:08:43.171002000 -0800
@@ -1,30 +1,42 @@
 /*
-  This software is available to you under a choice of one of two
-  licenses.  You may choose to be licensed under the terms of the GNU
-  General Public License (GPL) Version 2, available at
-  <http://www.fsf.org/copyleft/gpl.html>, or the OpenIB.org BSD
-  license, available in the LICENSE.TXT file accompanying this
-  software.  These details are also available at
-  <http://openib.org/license.html>.
-
-  THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
-  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
-  NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
-  BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
-  ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
-  CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-  SOFTWARE.
-
-  Copyright (c) 2005 Topspin Communications.  All rights reserved.
-
-  $Id: sdp_post.c 649 2004-08-13 22:41:04Z roland $
-*/
+ * Copyright (c) 2005 Topspin Communications.  All rights reserved.
+ *
+ * This software is available to you under a choice of one of two
+ * licenses.  You may choose to be licensed under the terms of the GNU
+ * General Public License (GPL) Version 2, available from the file
+ * COPYING in the main directory of this source tree, or the
+ * OpenIB.org BSD license below:
+ *
+ *     Redistribution and use in source and binary forms, with or
+ *     without modification, are permitted provided that the following
+ *     conditions are met:
+ *
+ *      - Redistributions of source code must retain the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer.
+ *
+ *      - Redistributions in binary form must reproduce the above
+ *        copyright notice, this list of conditions and the following
+ *        disclaimer in the documentation and/or other materials
+ *        provided with the distribution.
+ *
+ * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+ * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+ * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+ * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+ * BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+ * ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+ * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+ * SOFTWARE.
+ *
+ * $Id$
+ */
 
 #include "sdp_main.h"
 
-/* ========================================================================= */
-/*.._sdp_cm_accept -- respond to a connection attempt with an ack */
+/*
+ * _sdp_cm_accept - respond to a connection attempt with an ack
+ */
 static int _sdp_cm_accept(struct sdp_opt *conn)
 {
 	struct ib_cm_rep_param param;
@@ -176,8 +188,9 @@ error:
 	return result;
 } /* _sdp_cm_accept */
 
-/* ========================================================================= */
-/*.._sdp_cm_listen_lookup -- match a listener with an incomming conn. */
+/*
+ * _sdp_cm_listen_lookup - match a listener with an incomming conn
+ */
 static int _sdp_cm_listen_lookup(struct sdp_opt *conn)
 {
 	struct sdp_opt *listen_conn;
@@ -297,8 +310,9 @@ lookup_err:
 	return result;
 } /* _sdp_cm_listen_lookup */
 
-/* ========================================================================= */
-/*.._sdp_cm_hello_check -- validate the hello header */
+/*
+ * _sdp_cm_hello_check - validate the hello header
+ */
 static int _sdp_cm_hello_check(struct msg_hello *msg_hello)
 {
 	/*
@@ -369,10 +383,10 @@ static int _sdp_cm_hello_check(struct ms
 	return 0; /* success */
 } /* _sdp_cm_hello_check */
 
-/* ========================================================================= */
-/*..sdp_cm_req_handler -- handler for passive connection open completion */
-int sdp_cm_req_handler(struct ib_cm_id *cm_id,
-		       struct ib_cm_event *event)
+/*
+ * sdp_cm_req_handler - handler for passive connection open completion
+ */
+int sdp_cm_req_handler(struct ib_cm_id *cm_id, struct ib_cm_event *event)
 {
 	struct msg_hello *msg_hello = (struct msg_hello *)event->private_data;
 	struct sdp_opt *conn;
@@ -483,4 +497,3 @@ error:
 done:
 	return result;
 } /* sdp_cm_req_handler */
-




More information about the general mailing list