Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147638609
D36812.id111229.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
632 B
Referenced Files
None
Subscribers
None
D36812.id111229.diff
View Options
diff --git a/sbin/nvmecontrol/modules/wdc/wdc.c b/sbin/nvmecontrol/modules/wdc/wdc.c
--- a/sbin/nvmecontrol/modules/wdc/wdc.c
+++ b/sbin/nvmecontrol/modules/wdc/wdc.c
@@ -783,7 +783,6 @@
print_hgst_info_log(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused)
{
uint8_t *walker, *end, *subpage;
- int pages;
uint16_t len;
uint8_t subtype, res;
@@ -791,8 +790,7 @@
printf("===================\n");
walker = buf;
- pages = *walker++;
- walker++;
+ walker += 2; /* Page count */
len = le16dec(walker);
walker += 2;
end = walker + len; /* Length is exclusive of this header */
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 13, 1:01 PM (2 h, 38 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29623807
Default Alt Text
D36812.id111229.diff (632 B)
Attached To
Mode
D36812: nvmecontrol wdc: Remove unused but set variable.
Attached
Detach File
Event Timeline
Log In to Comment