]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/ieee1394/eth1394.c
ieee1394: Use DIV_ROUND_UP
[linux-2.6-omap-h63xx.git] / drivers / ieee1394 / eth1394.c
index b166b3575fa6d8904126e8a61ccaf604d5b9739f..20128692b3398be1c3a8556e78b593718894bdc1 100644 (file)
@@ -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,