: [zatm] fix sparse warning
Subsystems (2)
PATCH 2/6 : [zatm] fix sparse warning
please apply to 2.6 -- thanks!
# This is a BitKeeper generated diff -Nru style patch. #
# ChangeSet
# 2005/03/22 09:55:38-05:00 [email protected]
# [ATM]: [zatm] fix sparse warning
#
# Signed-off-by: Alexey Dobriyan <[email protected]> # Signed-off-by: Domen Puncer <[email protected]> # Signed-off-by: Chas Williams <[email protected]> # # drivers/atm/zatm.c # 2005/03/22 09:55:19-05:00 [email protected] +1 -1 # [ATM]: [zatm] fix sparse warning # # Signed-off-by: Alexey Dobriyan <[email protected]> # Signed-off-by: Domen Puncer <[email protected]> # Signed-off-by: Chas Williams <[email protected]> # diff -Nru a/drivers/atm/zatm.c b/drivers/atm/zatm.c --- a/drivers/atm/zatm.c 2005-03-22 19:50:21 -05:00 +++ b/drivers/atm/zatm.c 2005-03-22 19:50:21 -05:00 @@ -411,7 +411,7 @@ #if 0 printk("dummy: 0x%08lx, 0x%08lx\n",dummy[0],dummy[1]); #endif - size = error ? 0 : ntohs(((u16 *) skb->data)[cells* + size = error ? 0 : ntohs(((__be16 *) skb->data)[cells* ATM_CELL_PAYLOAD/sizeof(u16)-3]); EVENT("got skb 0x%lx, size %d\n",(unsigned long) skb,size); chan = (here[3] & uPD98401_AAL5_CHAN) >>
Quoted 1 line · On Tue, 22 Mar 2005 19:54:43 -0500 "chas williams - CONTRACTOR"…
please apply to 2.6 -- thanks!
Applied, thanks Chas.