projects
/
linux-2.6-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
cxgb3: Fix sparse warning and micro-optimize is_pure_response()
[linux-2.6-block.git]
/
drivers
/
net
/
cxgb3
/
sge.c
diff --git
a/drivers/net/cxgb3/sge.c
b/drivers/net/cxgb3/sge.c
index bc6a8dcb8cce9b3ce74c2e4b28704baf9917ef4f..d3a6e245f1ef16517cc567bab1332a6eb8e7e4a6 100644
(file)
--- a/
drivers/net/cxgb3/sge.c
+++ b/
drivers/net/cxgb3/sge.c
@@
-2306,7
+2306,7
@@
next_fl:
static inline int is_pure_response(const struct rsp_desc *r)
{
-
u32 n = ntohl(r->flags) &
(F_RSPD_ASYNC_NOTIF | F_RSPD_IMM_DATA_VALID);
+
__be32 n = r->flags & htonl
(F_RSPD_ASYNC_NOTIF | F_RSPD_IMM_DATA_VALID);
return (n | r->len_cq) == 0;
}