Skip to content

Commit 488bdc2

Browse files
committed
Don't check return type
1 parent 7a46173 commit 488bdc2

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

cuda_bindings/cuda/bindings/_internal/nvjitlink_windows.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ cdef extern from "windows.h" nogil:
4040
cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
4141
cdef uintptr_t result
4242
cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL)
43-
if wpath == NULL:
44-
raise
4543
with nogil:
4644
result = <uintptr_t>_LoadLibraryExW(
4745
wpath,

cuda_bindings/cuda/bindings/_internal/nvvm_windows.pyx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ cdef extern from "windows.h" nogil:
4040
cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
4141
cdef uintptr_t result
4242
cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL)
43-
if wpath == NULL:
44-
raise
4543
with nogil:
4644
result = <uintptr_t>_LoadLibraryExW(
4745
wpath,

cuda_bindings/cuda/bindings/_lib/windll.pxd

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ cdef extern from "windows.h" nogil:
2626
cdef inline uintptr_t LoadLibraryExW(str path, HANDLE hFile, DWORD dwFlags):
2727
cdef uintptr_t result
2828
cdef wchar_t* wpath = PyUnicode_AsWideCharString(path, NULL)
29-
if wpath is NULL:
30-
raise
3129
with nogil:
3230
result = <uintptr_t>_LoadLibraryExW(
3331
wpath,

0 commit comments

Comments
 (0)