xserver/hw/xfree86/drivers
Enrico Weigelt, metux IT consult faa216e8bb (1823) xfree86: replace xallocarray() by calloc()
Only key difference that calloc(), in contrast to rellocarray(),
is zero-initializing. The overhead is hard to measure on today's
machines, and it's safer programming practise to always allocate
zero-initialized, so one can't forget to do it explicitly.

Cocci rule:

    @@
    expression COUNT;
    expression LEN;
    @@
    - xallocarray(COUNT,LEN)
    + calloc(COUNT,LEN)

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
2025-05-22 17:35:00 +02:00
..
inputtest (!1990) xfree86: unexport xf86PostButtonEventM() 2025-05-22 17:34:35 +02:00
modesetting (1823) xfree86: replace xallocarray() by calloc() 2025-05-22 17:35:00 +02:00