riscv: Remove unused argument

Signed-off-by: Cosmin Truta <ctruta@gmail.com>
This commit is contained in:
Filip Wasil 2025-06-28 12:00:03 +02:00 committed by Cosmin Truta
parent f451a4de09
commit 4266c75f40
2 changed files with 3 additions and 3 deletions

View File

@ -25,7 +25,7 @@
#endif
static int
png_have_rvv(png_structp png_ptr) {
png_have_rvv() {
#if defined(__linux__)
return getauxval (AT_HWCAP) & COMPAT_HWCAP_ISA_V ? 1 : 0;
#else

View File

@ -26,7 +26,7 @@
# endif
#endif
static int png_have_rvv(png_structp png_ptr);
static int png_have_rvv();
#ifdef PNG_RISCV_RVV_FILE
# include PNG_RISCV_RVV_FILE
#endif
@ -43,7 +43,7 @@ png_init_filter_functions_rvv(png_structp pp, unsigned int bpp)
static volatile sig_atomic_t no_rvv = -1; /* not checked */
if (no_rvv < 0)
no_rvv = !png_have_rvv(pp);
no_rvv = !png_have_rvv();
if (no_rvv)
return;