aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt3sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2012-10-18 22:26:34 +0200
committerGreg Kroah-Hartman <[email protected]>2012-10-22 16:50:53 -0700
commitf327b340e35b210c936cd109544e672aa7a0e49d (patch)
treeee405740220bdf4d97653f7899e6118f71eb03de /drivers/scsi/mpt3sas/mpi/mpi2_raid.h
parent31e121284f90bf559618330e230b286f969b6b7f (diff)
TTY: hci_ldisc, remove invalid check in open
hci_ldisc's open checks if tty_struct->disc_data is set. And if so it returns with an error. But nothing ensures disc_data to be NULL. And since ld->ops->open shall be called only once, we do not need the check at all. So remove it. Note that this is not an issue now, but n_tty will start using the disc_data pointer and this invalid 'if' would trigger then rendering TTYs over BT unusable. Signed-off-by: Jiri Slaby <[email protected]> Acked-by: Marcel Holtmann <[email protected]> Cc: Gustavo Padovan <[email protected]> Cc: Johan Hedberg <[email protected]> Cc: [email protected] Acked-by: Alan Cox <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt3sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions