Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 35df8397 authored by Joe Perches's avatar Joe Perches Committed by Jiri Kosina
Browse files

drivers/scsi: Remove unnecessary casts of private_data



Signed-off-by: default avatarJoe Perches <joe@perches.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 27e49945
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -770,7 +770,7 @@ static long aac_compat_cfg_ioctl(struct file *file, unsigned cmd, unsigned long
{
	if (!capable(CAP_SYS_RAWIO))
		return -EPERM;
	return aac_compat_do_ioctl((struct aac_dev *)file->private_data, cmd, arg);
	return aac_compat_do_ioctl(file->private_data, cmd, arg);
}
#endif

+1 −1
Original line number Diff line number Diff line
@@ -210,7 +210,7 @@ static void sg_put_dev(Sg_device *sdp);

static int sg_allow_access(struct file *filp, unsigned char *cmd)
{
	struct sg_fd *sfp = (struct sg_fd *)filp->private_data;
	struct sg_fd *sfp = filp->private_data;

	if (sfp->parentdp->device->type == TYPE_SCANNER)
		return 0;