staging: rdma: hfi1: Remove casts of pointer to same type
authorBhaktipriya Shridhar <bhaktipriya96@gmail.com>
Thu, 25 Feb 2016 13:24:03 +0000 (18:54 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Mar 2016 06:09:09 +0000 (22:09 -0800)
commita4fe1bc16411c4d3f8cbc0dbecb7b5dff80cd143
tree06313b2275bd592b58b6f4e385267797c1fd77bd
parent6d210eef1b31b02ebec37a2ced6e73a1f94aacf1
staging: rdma: hfi1: Remove casts of pointer to same type

Casting a pointer to a pointer of the same type is unnecessary, so
remove these unnecessary casts.

This was done with Coccinelle:

@@
type T;
T *ptr;
@@
- (T *)ptr
+ ptr

Signed-off-by: Bhaktipriya Shridhar <bhaktipriya96@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rdma/hfi1/mad.c