Skip to content

Commit 2d6d632

Browse files
committed
Address code review
1 parent a9df12f commit 2d6d632

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Modules/mmapmodule.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1141,6 +1141,7 @@ mmap_mmap_set_name_impl(mmap_object *self, const char *name)
11411141
char buf[81] = {0, };
11421142
sprintf(buf, "%s%s", prefix, name);
11431143
_PyAnnotateMemoryMap(self->data, self->size, buf);
1144+
Py_RETURN_NONE;
11441145
}
11451146
else {
11461147
/* cannot name non-anonymous mappings */
@@ -1154,7 +1155,6 @@ mmap_mmap_set_name_impl(mmap_object *self, const char *name)
11541155
"Annotation of mmap is not supported on this platform");
11551156
return NULL;
11561157
#endif
1157-
Py_RETURN_NONE;
11581158
}
11591159

11601160
/*[clinic input]

0 commit comments

Comments
 (0)