summaryrefslogtreecommitdiff
path: root/drivers/ieee1394/eth1394.c
diff options
context:
space:
mode:
authorJulia Lawall <julia@diku.dk>2008-08-02 19:13:09 +0400
committerStefan Richter <stefanr@s5r6.in-berlin.de>2008-10-16 00:21:07 +0400
commit68e2aa793ed55b0c1461b4ab92554bb5ad152724 (patch)
tree608f2bf87082ee6f23d4336fa382792f7d08b117 /drivers/ieee1394/eth1394.c
parent3fa8749e584b55f1180411ab1b51117190bac1e5 (diff)
downloadlinux-68e2aa793ed55b0c1461b4ab92554bb5ad152724.tar.xz
ieee1394: Use DIV_ROUND_UP
Signed-off-by: Julia Lawall <julia@diku.dk> Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
Diffstat (limited to 'drivers/ieee1394/eth1394.c')
-rw-r--r--drivers/ieee1394/eth1394.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ieee1394/eth1394.c b/drivers/ieee1394/eth1394.c
index b166b3575fa6..20128692b339 100644
--- a/drivers/ieee1394/eth1394.c
+++ b/drivers/ieee1394/eth1394.c
@@ -1361,7 +1361,7 @@ static unsigned int ether1394_encapsulate_prep(unsigned int max_payload,
hdr->ff.dgl = dgl;
adj_max_payload = max_payload - hdr_type_len[ETH1394_HDR_LF_FF];
}
- return (dg_size + adj_max_payload - 1) / adj_max_payload;
+ return DIV_ROUND_UP(dg_size, adj_max_payload);
}
static unsigned int ether1394_encapsulate(struct sk_buff *skb,