]> Git Repo - linux.git/commitdiff
IB/qib: Delete struct qib_ivdev.qp_rnd
authorGeorge Spelvin <[email protected]>
Wed, 27 Mar 2019 16:55:00 +0000 (12:55 -0400)
committerJason Gunthorpe <[email protected]>
Sun, 29 Mar 2020 14:15:16 +0000 (11:15 -0300)
I was checking the field to see if it needed the full get_random_bytes()
and discovered it's unused.

Only compile-tested, as I don't have the hardware, but I'm still pretty
confident.

Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: George Spelvin <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
drivers/infiniband/hw/qib/qib_verbs.c
drivers/infiniband/hw/qib/qib_verbs.h

index 5ef93f8f17a192733fdf0751e01cfb9fb7732387..7508abb6a0fa1eb1919d4bc51c5e47b0db23759f 100644 (file)
@@ -39,7 +39,6 @@
 #include <linux/utsname.h>
 #include <linux/rculist.h>
 #include <linux/mm.h>
-#include <linux/random.h>
 #include <linux/vmalloc.h>
 #include <rdma/rdma_vt.h>
 
@@ -1503,7 +1502,6 @@ int qib_register_ib_device(struct qib_devdata *dd)
        unsigned i, ctxt;
        int ret;
 
-       get_random_bytes(&dev->qp_rnd, sizeof(dev->qp_rnd));
        for (i = 0; i < dd->num_pports; i++)
                init_ibport(ppd + i);
 
index 8bf414b47b96b752007eff4f31ae6aa1438a47c1..dc0e81f3b6f4f2533226f66d13842dfa55494c1a 100644 (file)
@@ -177,7 +177,6 @@ struct qib_ibdev {
        struct timer_list mem_timer;
        struct qib_pio_header *pio_hdrs;
        dma_addr_t pio_hdrs_phys;
-       u32 qp_rnd; /* random bytes for hash */
 
        u32 n_piowait;
        u32 n_txwait;
This page took 0.059783 seconds and 4 git commands to generate.