Skip to content

Commit 398489b

Browse files
Apply suggestions from code review
Co-authored-by: Phillip Cloud <[email protected]>
1 parent ddb0062 commit 398489b

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

numba_cuda/numba/cuda/cpython/listobj.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,7 @@ def define_dtor(self):
304304
else:
305305
dtypestr = str(self.dtype)
306306
fn = cgutils.get_or_insert_function(
307-
mod, fnty, "numba_cuda_dtor_list_{}".format(dtypestr)
307+
mod, fnty, f"numba_cuda_dtor_list_{dtypestr}"
308308
)
309309
if not fn.is_declaration:
310310
# End early if the dtor is already defined

numba_cuda/numba/cuda/memory_management/nrt.cu

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,12 @@ nrt_varsize_dtor(void *ptr, size_t size, void *info) {
9191

9292
__device__ NRT_MemInfo* NRT_MemInfo_new_varsize(size_t size)
9393
{
94-
NRT_MemInfo *mi = NULL;
9594
void *data = NRT_Allocate(size);
9695
if (data == NULL) {
9796
return NULL; /* return early as allocation failed */
9897
}
9998

100-
mi = NRT_MemInfo_new(data, size, nrt_varsize_dtor, NULL);
99+
NRT_MemInfo *mi = NRT_MemInfo_new(data, size, nrt_varsize_dtor, NULL);
101100

102101
return mi;
103102
}

0 commit comments

Comments
 (0)