diff options
author | Melike Yurtoglu <aysemelikeyurtoglu@gmail.com> | 2014-09-29 21:28:02 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-10-02 10:07:04 -0700 |
commit | bb0f20a7e871743380b2cbaaf35281775567e88c (patch) | |
tree | d66fb14a08bd97a279881ac1cdd056157b1cdc93 /drivers/staging | |
parent | e245b904186b3514e4e2eec0d58ad6b095c5daab (diff) | |
download | blackbird-obmc-linux-bb0f20a7e871743380b2cbaaf35281775567e88c.tar.gz blackbird-obmc-linux-bb0f20a7e871743380b2cbaaf35281775567e88c.zip |
staging: rts5208: Fix missing blank line warning.
Fixes "Missing a blank line after declarations" checkpatch.pl warning in
rtsx_scsi.c
Signed-off-by: Melike Yurtoglu <aysemelikeyurtoglu@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/rts5208/rtsx_scsi.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/staging/rts5208/rtsx_scsi.c b/drivers/staging/rts5208/rtsx_scsi.c index 7e6c7c043a52..bd033d02df39 100644 --- a/drivers/staging/rts5208/rtsx_scsi.c +++ b/drivers/staging/rts5208/rtsx_scsi.c @@ -440,6 +440,7 @@ static int test_unit_ready(struct scsi_cmnd *srb, struct rtsx_chip *chip) #ifdef SUPPORT_SD_LOCK if (get_lun_card(chip, SCSI_LUN(srb)) == SD_CARD) { struct sd_info *sd_card = &(chip->sd_card); + if (sd_card->sd_lock_notify) { sd_card->sd_lock_notify = 0; set_sense_type(chip, lun, SENSE_TYPE_MEDIA_CHANGE); @@ -746,6 +747,7 @@ static void ms_mode_sense(struct rtsx_chip *chip, u8 cmd, if (data_size > sys_info_offset) { /* 96 Bytes Attribute Data */ int len = data_size - sys_info_offset; + len = (len < 96) ? len : 96; memcpy(buf + sys_info_offset, ms_card->raw_sys_info, len); @@ -1568,6 +1570,7 @@ static int get_variable(struct scsi_cmnd *srb, struct rtsx_chip *chip) rtsx_stor_set_xfer_buf(&tmp, 1, srb); } else if (srb->cmnd[3] == 2) { u8 tmp = chip->blink_led; + rtsx_stor_set_xfer_buf(&tmp, 1, srb); } else { set_sense_type(chip, lun, SENSE_TYPE_MEDIA_INVALID_CMD_FIELD); |