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

Commit 5c67eeb6 authored by Mihnea Dobrescu-Balaur's avatar Mihnea Dobrescu-Balaur Committed by Daniel Vetter
Browse files

gpu: don't cast kzalloc() return value

parent 35aad75f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -451,7 +451,7 @@ static bool intel_sdvo_write_cmd(struct intel_sdvo *intel_sdvo, u8 cmd,
	int i, ret = true;

        /* Would be simpler to allocate both in one go ? */        
	buf = (u8 *)kzalloc(args_len * 2 + 2, GFP_KERNEL);
	buf = kzalloc(args_len * 2 + 2, GFP_KERNEL);
	if (!buf)
		return false;