Skip to content

Commit 06b43f9

Browse files
Al Viromartinkpetersen
authored andcommitted
scsi: hpsa: hpsa_ioctl(): Tidy up a bit
Link: https://lore.kernel.org/r/[email protected] Acked-by: Don Brace <[email protected]> Tested-by: Don Brace <[email protected]> Signed-off-by: Al Viro <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent 10100ff commit 06b43f9

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

drivers/scsi/hpsa.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6577,14 +6577,11 @@ static void check_ioctl_unit_attention(struct ctlr_info *h,
65776577
* ioctl
65786578
*/
65796579
static int hpsa_ioctl(struct scsi_device *dev, unsigned int cmd,
6580-
void __user *arg)
6580+
void __user *argp)
65816581
{
6582-
struct ctlr_info *h;
6583-
void __user *argp = (void __user *)arg;
6582+
struct ctlr_info *h = sdev_to_hba(dev);
65846583
int rc;
65856584

6586-
h = sdev_to_hba(dev);
6587-
65886585
switch (cmd) {
65896586
case CCISS_DEREGDISK:
65906587
case CCISS_REGNEWDISK:

0 commit comments

Comments
 (0)