aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt3sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorJiri Slaby <[email protected]>2012-10-18 22:26:35 +0200
committerGreg Kroah-Hartman <[email protected]>2012-10-22 16:50:53 -0700
commitb91939f528fa80e95a7e9592425dd1026d159b2a (patch)
treebfd3d2ec2a5cc8af1a9d8591d042685d6105543f /drivers/scsi/mpt3sas/mpi/mpi2_raid.h
parentf327b340e35b210c936cd109544e672aa7a0e49d (diff)
TTY: n_tty, simplify read_buf+echo_buf allocation
ldisc->open and close are called only once and cannot cross. So the tests in open and close are superfluous. Remove them. (But leave sets to NULL to ensure there is not a bug somewhere.) And when the tests are gone, handle properly failures in open. We leaked read_buf if allocation of echo_buf failed before. Now this is not the case anymore. Signed-off-by: Jiri Slaby <[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