Commit:     f9663aea2a938f9dc60dbfef34b9e7847a69c947
Parent:     4352d82647f679fb8dd9440b34400fa49beedb2c
Author:     Grant Likely <[EMAIL PROTECTED]>
AuthorDate: Sat Dec 1 22:10:03 2007 -0700
Committer:  Jeff Garzik <[EMAIL PROTECTED]>
CommitDate: Tue Dec 4 15:06:11 2007 -0500

    gianfar: fix compile warning
    Eliminate an uninitialized variable warning.  The code is correct, but
    a pointer to the automatic variable 'addr' is passed to dma_alloc_coherent.
    Since addr has never been initialized, and the compiler doesn't know
    what dma_alloc_coherent will do with it, it complains.
    Signed-off-by: Grant Likely <[EMAIL PROTECTED]>
    Signed-off-by: Jeff Garzik <[EMAIL PROTECTED]>
 drivers/net/gianfar.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/net/gianfar.c b/drivers/net/gianfar.c
index 38268d7..0431e9e 100644
--- a/drivers/net/gianfar.c
+++ b/drivers/net/gianfar.c
@@ -696,7 +696,7 @@ int startup_gfar(struct net_device *dev)
        struct txbd8 *txbdp;
        struct rxbd8 *rxbdp;
-       dma_addr_t addr;
+       dma_addr_t addr = 0;
        unsigned long vaddr;
        int i;
        struct gfar_private *priv = netdev_priv(dev);
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to