Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151291073
D6301.id16118.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
2 KB
Referenced Files
None
Subscribers
None
D6301.id16118.diff
View Options
Index: sys/mips/adm5120/obio.c
===================================================================
--- sys/mips/adm5120/obio.c
+++ sys/mips/adm5120/obio.c
@@ -486,10 +486,6 @@
struct obio_ivar *ivar;
ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO);
- if (ivar == NULL) {
- printf("Failed to allocate ivar\n");
- return (0);
- }
resource_list_init(&ivar->resources);
child = device_add_child_ordered(bus, order, name, unit);
Index: sys/mips/alchemy/obio.c
===================================================================
--- sys/mips/alchemy/obio.c
+++ sys/mips/alchemy/obio.c
@@ -478,10 +478,6 @@
struct obio_ivar *ivar;
ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO);
- if (ivar == NULL) {
- printf("Failed to allocate ivar\n");
- return (0);
- }
resource_list_init(&ivar->resources);
child = device_add_child_ordered(bus, order, name, unit);
Index: sys/mips/atheros/apb.c
===================================================================
--- sys/mips/atheros/apb.c
+++ sys/mips/atheros/apb.c
@@ -451,10 +451,6 @@
struct apb_ivar *ivar;
ivar = malloc(sizeof(struct apb_ivar), M_DEVBUF, M_WAITOK | M_ZERO);
- if (ivar == NULL) {
- printf("Failed to allocate ivar\n");
- return (0);
- }
resource_list_init(&ivar->resources);
child = device_add_child_ordered(bus, order, name, unit);
Index: sys/mips/idt/obio.c
===================================================================
--- sys/mips/idt/obio.c
+++ sys/mips/idt/obio.c
@@ -428,10 +428,6 @@
struct obio_ivar *ivar;
ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO);
- if (ivar == NULL) {
- printf("Failed to allocate ivar\n");
- return (0);
- }
resource_list_init(&ivar->resources);
child = device_add_child_ordered(bus, order, name, unit);
Index: sys/mips/rt305x/obio.c
===================================================================
--- sys/mips/rt305x/obio.c
+++ sys/mips/rt305x/obio.c
@@ -547,10 +547,6 @@
struct obio_ivar *ivar;
ivar = malloc(sizeof(struct obio_ivar), M_DEVBUF, M_WAITOK | M_ZERO);
- if (ivar == NULL) {
- printf("Failed to allocate ivar\n");
- return (0);
- }
resource_list_init(&ivar->resources);
child = device_add_child_ordered(bus, order, name, unit);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 9:05 AM (20 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31090460
Default Alt Text
D6301.id16118.diff (2 KB)
Attached To
Mode
D6301: Remove useless NULL checks from sys/mips.
Attached
Detach File
Event Timeline
Log In to Comment