diff options
-rw-r--r-- | drivers/block/pktcdvd.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/block/pktcdvd.c b/drivers/block/pktcdvd.c index 85e44d07eab8..45bee918c46a 100644 --- a/drivers/block/pktcdvd.c +++ b/drivers/block/pktcdvd.c | |||
@@ -2080,7 +2080,6 @@ static noinline_for_stack int pkt_write_caching(struct pktcdvd_device *pd, | |||
2080 | unsigned char buf[64]; | 2080 | unsigned char buf[64]; |
2081 | int ret; | 2081 | int ret; |
2082 | 2082 | ||
2083 | memset(buf, 0, sizeof(buf)); | ||
2084 | init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_READ); | 2083 | init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_READ); |
2085 | cgc.sense = &sense; | 2084 | cgc.sense = &sense; |
2086 | cgc.buflen = pd->mode_offset + 12; | 2085 | cgc.buflen = pd->mode_offset + 12; |
@@ -2127,7 +2126,6 @@ static noinline_for_stack int pkt_get_max_speed(struct pktcdvd_device *pd, | |||
2127 | unsigned char *cap_buf; | 2126 | unsigned char *cap_buf; |
2128 | int ret, offset; | 2127 | int ret, offset; |
2129 | 2128 | ||
2130 | memset(buf, 0, sizeof(buf)); | ||
2131 | cap_buf = &buf[sizeof(struct mode_page_header) + pd->mode_offset]; | 2129 | cap_buf = &buf[sizeof(struct mode_page_header) + pd->mode_offset]; |
2132 | init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_UNKNOWN); | 2130 | init_cdrom_command(&cgc, buf, sizeof(buf), CGC_DATA_UNKNOWN); |
2133 | cgc.sense = &sense; | 2131 | cgc.sense = &sense; |