diff mbox

IB/usnic: Remove unused functions

Message ID 1488398949-30263-1-git-send-email-yuval.shaia@oracle.com (mailing list archive)
State Accepted
Headers show

Commit Message

Yuval Shaia March 1, 2017, 8:09 p.m. UTC
Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
---
 drivers/infiniband/hw/usnic/usnic_common_util.h | 29 -------------------------
 1 file changed, 29 deletions(-)

Comments

Leon Romanovsky March 2, 2017, 1:48 p.m. UTC | #1
On Wed, Mar 01, 2017 at 10:09:09PM +0200, Yuval Shaia wrote:
> Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> ---
>  drivers/infiniband/hw/usnic/usnic_common_util.h | 29 -------------------------
>  1 file changed, 29 deletions(-)
>

Thanks,
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Yuval Shaia April 24, 2017, 3:48 p.m. UTC | #2
On Thu, Mar 02, 2017 at 03:48:22PM +0200, Leon Romanovsky wrote:
> On Wed, Mar 01, 2017 at 10:09:09PM +0200, Yuval Shaia wrote:
> > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> > ---
> >  drivers/infiniband/hw/usnic/usnic_common_util.h | 29 -------------------------
> >  1 file changed, 29 deletions(-)
> >
> 
> Thanks,
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>

Hi Doug,
If no more comments on this one can you consider taking it?

Thanks,
Yuval


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Yuval Shaia April 24, 2017, 3:49 p.m. UTC | #3
On Thu, Mar 02, 2017 at 03:48:22PM +0200, Leon Romanovsky wrote:
> On Wed, Mar 01, 2017 at 10:09:09PM +0200, Yuval Shaia wrote:
> > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> > ---
> >  drivers/infiniband/hw/usnic/usnic_common_util.h | 29 -------------------------
> >  1 file changed, 29 deletions(-)
> >
> 
> Thanks,
> Reviewed-by: Leon Romanovsky <leonro@mellanox.com>

Hi Doug,
If no more comments on this one can you consider taking it?

Thanks,
Yuval


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Doug Ledford April 25, 2017, 6:13 p.m. UTC | #4
On Mon, 2017-04-24 at 18:49 +0300, Yuval Shaia wrote:
> On Thu, Mar 02, 2017 at 03:48:22PM +0200, Leon Romanovsky wrote:
> > 
> > On Wed, Mar 01, 2017 at 10:09:09PM +0200, Yuval Shaia wrote:
> > > 
> > > Signed-off-by: Yuval Shaia <yuval.shaia@oracle.com>
> > > ---
> > >  drivers/infiniband/hw/usnic/usnic_common_util.h | 29 ---------
> > > ----------------
> > >  1 file changed, 29 deletions(-)
> > > 
> > 
> > Thanks,
> > Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
> 
> Hi Doug,
> If no more comments on this one can you consider taking it?

I've pulled it in, thanks.
diff mbox

Patch

diff --git a/drivers/infiniband/hw/usnic/usnic_common_util.h b/drivers/infiniband/hw/usnic/usnic_common_util.h
index b54986d..d757b82 100644
--- a/drivers/infiniband/hw/usnic/usnic_common_util.h
+++ b/drivers/infiniband/hw/usnic/usnic_common_util.h
@@ -35,22 +35,6 @@ 
 #define USNIC_CMN_UTIL_H
 
 static inline void
-usnic_mac_to_gid(const char *const mac, char *raw_gid)
-{
-	raw_gid[0] = 0xfe;
-	raw_gid[1] = 0x80;
-	memset(&raw_gid[2], 0, 6);
-	raw_gid[8] = mac[0]^2;
-	raw_gid[9] = mac[1];
-	raw_gid[10] = mac[2];
-	raw_gid[11] = 0xff;
-	raw_gid[12] = 0xfe;
-	raw_gid[13] = mac[3];
-	raw_gid[14] = mac[4];
-	raw_gid[15] = mac[5];
-}
-
-static inline void
 usnic_mac_ip_to_gid(const char *const mac, const __be32 inaddr, char *raw_gid)
 {
 	raw_gid[0] = 0xfe;
@@ -67,17 +51,4 @@ 
 	raw_gid[15] = mac[5];
 }
 
-static inline void
-usnic_write_gid_if_id_from_mac(char *mac, char *raw_gid)
-{
-	raw_gid[8] = mac[0]^2;
-	raw_gid[9] = mac[1];
-	raw_gid[10] = mac[2];
-	raw_gid[11] = 0xff;
-	raw_gid[12] = 0xfe;
-	raw_gid[13] = mac[3];
-	raw_gid[14] = mac[4];
-	raw_gid[15] = mac[5];
-}
-
 #endif /* USNIC_COMMON_UTIL_H */