Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F148714114
D5042.1788228309.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D5042.1788228309.diff
View Options
Index: head/usr.sbin/bhyve/block_if.c
===================================================================
--- head/usr.sbin/bhyve/block_if.c
+++ head/usr.sbin/bhyve/block_if.c
@@ -692,9 +692,7 @@
blockif_close(struct blockif_ctxt *bc)
{
void *jval;
- int err, i;
-
- err = 0;
+ int i;
assert(bc->bc_magic == BLOCKIF_SIG);
Index: head/usr.sbin/bhyve/pci_ahci.c
===================================================================
--- head/usr.sbin/bhyve/pci_ahci.c
+++ head/usr.sbin/bhyve/pci_ahci.c
@@ -1201,10 +1201,9 @@
{
int msf, size;
uint64_t sectors;
- uint8_t start_track, *bp, buf[50];
+ uint8_t *bp, buf[50];
msf = (acmd[1] >> 1) & 1;
- start_track = acmd[6];
bp = buf + 2;
*bp++ = 1;
*bp++ = 1;
@@ -1312,13 +1311,11 @@
struct ahci_cmd_hdr *hdr;
struct ahci_prdt_entry *prdt;
struct blockif_req *breq;
- struct pci_ahci_softc *sc;
uint8_t *acmd;
uint64_t lba;
uint32_t len;
int err;
- sc = p->pr_sc;
acmd = cfis + 0x40;
hdr = (struct ahci_cmd_hdr *)(p->cmd_lst + slot * AHCI_CL_SIZE);
prdt = (struct ahci_prdt_entry *)(cfis + 0x80);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Sep 1, 2:05 AM (4 m, 49 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29489442
Default Alt Text
D5042.1788228309.diff (1 KB)
Attached To
Mode
D5042: Cleanup unused-but-set-variable spotted by gcc-4.9
Attached
Detach File
Event Timeline
Log In to Comment