mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
IB/core: Reduce the places that use zgid
Instead of open coding memcmp() to check whether a given GID is zero or not, use a helper function to do so, and replace instances of memcpy(z,&zgid) with memset. Signed-off-by: Parav Pandit <[email protected]> Signed-off-by: Leon Romanovsky <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
This commit is contained in:
parent
7b74a83cf5
commit
25e62655c7
4 changed files with 19 additions and 8 deletions
|
|
@ -149,4 +149,5 @@ int ib_get_cached_port_state(struct ib_device *device,
|
|||
u8 port_num,
|
||||
enum ib_port_state *port_active);
|
||||
|
||||
bool rdma_is_zero_gid(const union ib_gid *gid);
|
||||
#endif /* _IB_CACHE_H */
|
||||
|
|
|
|||
Loading…
Reference in a new issue