Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 030274ae authored by Ralf Baechle's avatar Ralf Baechle
Browse files

Remove useless casts of kmalloc return values.

parent e5adb877
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -290,8 +290,7 @@ au1xxx_dbdma_chan_alloc(u32 srcid, u32 destid,
				/* If kmalloc fails, it is caught below same
				 * as a channel not available.
				 */
				ctp = (chan_tab_t *)
					kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
				ctp = kmalloc(sizeof(chan_tab_t), GFP_KERNEL);
				chan_tab_ptr[i] = ctp;
				break;
			}
+1 −3
Original line number Diff line number Diff line
@@ -422,9 +422,7 @@ static inline int look_for_irix_interpreter(char **name,
		if (*name != NULL)
			goto out;

		*name = (char *) kmalloc((epp->p_filesz +
					  strlen(IRIX_EMUL)),
					 GFP_KERNEL);
		*name = kmalloc(epp->p_filesz + strlen(IRIX_EMUL), GFP_KERNEL);
		if (!*name)
			return -ENOMEM;