diff options
Diffstat (limited to 'drivers/scsi/sg.c')
-rw-r--r-- | drivers/scsi/sg.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/scsi/sg.c b/drivers/scsi/sg.c index b098942445ec..98b9312ba8da 100644 --- a/drivers/scsi/sg.c +++ b/drivers/scsi/sg.c | |||
@@ -2635,8 +2635,7 @@ static int | |||
2635 | sg_proc_init(void) | 2635 | sg_proc_init(void) |
2636 | { | 2636 | { |
2637 | int k, mask; | 2637 | int k, mask; |
2638 | int num_leaves = | 2638 | int num_leaves = ARRAY_SIZE(sg_proc_leaf_arr); |
2639 | sizeof (sg_proc_leaf_arr) / sizeof (sg_proc_leaf_arr[0]); | ||
2640 | struct proc_dir_entry *pdep; | 2639 | struct proc_dir_entry *pdep; |
2641 | struct sg_proc_leaf * leaf; | 2640 | struct sg_proc_leaf * leaf; |
2642 | 2641 | ||
@@ -2661,8 +2660,7 @@ static void | |||
2661 | sg_proc_cleanup(void) | 2660 | sg_proc_cleanup(void) |
2662 | { | 2661 | { |
2663 | int k; | 2662 | int k; |
2664 | int num_leaves = | 2663 | int num_leaves = ARRAY_SIZE(sg_proc_leaf_arr); |
2665 | sizeof (sg_proc_leaf_arr) / sizeof (sg_proc_leaf_arr[0]); | ||
2666 | 2664 | ||
2667 | if (!sg_proc_sgp) | 2665 | if (!sg_proc_sgp) |
2668 | return; | 2666 | return; |