Skip to content

Commit

Permalink
remove EINVAL remnants
Browse files Browse the repository at this point in the history
  • Loading branch information
jpoirier committed Dec 4, 2015
1 parent 32fee91 commit 14d9d91
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions rtlsdr.go
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ const (
libErrorInterrupted
libErrorNoMem
libErrorNotSupported
linErrorInvalidParam = EINVAL
libErrorOther = LIBUSB_ERROR_OTHER
libErrorOther = LIBUSB_ERROR_OTHER
)

// Sampling modes.
Expand All @@ -151,7 +150,6 @@ var libErrMap = map[int]error{
libErrorInterrupted: errors.New("system call interrupted (perhaps due to signal)"),
libErrorNoMem: errors.New("insufficient memory"),
libErrorNotSupported: errors.New("operation not supported or unimplemented on this platform"),
linErrorInvalidParam: errors.New("invalid parameter"),
libErrorOther: errors.New("unknown error"),
}

Expand Down

0 comments on commit 14d9d91

Please sign in to comment.