Page MenuHomeFreeBSD

nvme: removed unused 'regs' variable
ClosedPublic

Authored by ziaee on Wed, Mar 11, 8:54 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, Mar 29, 11:56 PM
Unknown Object (File)
Fri, Mar 27, 8:26 PM
Unknown Object (File)
Fri, Mar 27, 6:05 AM
Unknown Object (File)
Wed, Mar 25, 5:56 AM
Unknown Object (File)
Wed, Mar 25, 2:45 AM
Unknown Object (File)
Tue, Mar 24, 9:57 PM
Unknown Object (File)
Sun, Mar 22, 4:07 PM
Unknown Object (File)
Sat, Mar 21, 12:25 PM
Subscribers

Details

Summary

The private struct has a 'regs' member that's only written to
and otherwise unused. This change removes it.

Proxying on behalf of Matt Delco <delco@google.com>

Requested by: jhb

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 71351
Build 68234: arc lint + arc unit

Event Timeline

ziaee requested review of this revision.Wed, Mar 11, 8:54 PM

Yes. We only use struct nvme_registers for register offsets, and otherwise use bus space to get the data.

This revision is now accepted and ready to land.Wed, Mar 11, 9:25 PM

Great that we already use bus_space. I feared the worst when I saw this assignment fly by in the earlier diff.

This revision was automatically updated to reflect the committed changes.