Skip to content

Commit 5b33200

Browse files
committed
chore(fmt): fix formating
1 parent 2985faf commit 5b33200

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pkg/drive/sgio/ops.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ func ATATrustedSend(fd uintptr, proto uint8, comID uint16, in []byte) error {
186186

187187
// SCSI SECURITY IN
188188
func SCSISecurityIn(fd uintptr, proto uint8, sps uint16, resp *[]byte) error {
189-
if len(*resp) & 0x1ff > 0 {
189+
if len(*resp)&0x1ff > 0 {
190190
return fmt.Errorf("SCSISecurityIn only supports 512-byte aligned buffers")
191191
}
192192
cdb := CDB12{SCSI_SECURITY_IN}
@@ -207,7 +207,7 @@ func SCSISecurityIn(fd uintptr, proto uint8, sps uint16, resp *[]byte) error {
207207

208208
// SCSI SECURITY OUT
209209
func SCSISecurityOut(fd uintptr, proto uint8, sps uint16, in []byte) error {
210-
if len(in) & 0x1ff > 0 {
210+
if len(in)&0x1ff > 0 {
211211
return fmt.Errorf("SCSISecurityOut only supports 512-byte aligned buffers")
212212
}
213213
cdb := CDB12{SCSI_SECURITY_OUT}

0 commit comments

Comments
 (0)