File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -147,10 +147,8 @@ static int __init sun4i_ic_of_init(struct device_node *node,
147
147
struct device_node * parent )
148
148
{
149
149
irq_ic_data = kzalloc (sizeof (struct sun4i_irq_chip_data ), GFP_KERNEL );
150
- if (!irq_ic_data ) {
151
- pr_err ("kzalloc failed!\n" );
150
+ if (!irq_ic_data )
152
151
return - ENOMEM ;
153
- }
154
152
155
153
irq_ic_data -> enable_reg_offset = SUN4I_IRQ_ENABLE_REG_OFFSET ;
156
154
irq_ic_data -> mask_reg_offset = SUN4I_IRQ_MASK_REG_OFFSET ;
@@ -164,10 +162,8 @@ static int __init suniv_ic_of_init(struct device_node *node,
164
162
struct device_node * parent )
165
163
{
166
164
irq_ic_data = kzalloc (sizeof (struct sun4i_irq_chip_data ), GFP_KERNEL );
167
- if (!irq_ic_data ) {
168
- pr_err ("kzalloc failed!\n" );
165
+ if (!irq_ic_data )
169
166
return - ENOMEM ;
170
- }
171
167
172
168
irq_ic_data -> enable_reg_offset = SUNIV_IRQ_ENABLE_REG_OFFSET ;
173
169
irq_ic_data -> mask_reg_offset = SUNIV_IRQ_MASK_REG_OFFSET ;
You can’t perform that action at this time.
0 commit comments