remove redundant code

This commit is contained in:
Meliox 2026-06-07 02:33:24 +02:00
parent 5fdb5c9d77
commit 75235bf32e

View File

@ -20,8 +20,6 @@ our @EXPORT_OK = qw(
sub get_intel_gpu_devices { sub get_intel_gpu_devices {
my @devices = (); my @devices = ();
return @devices unless check_executable('/usr/bin/intel_gpu_top', 'Intel GPU');
debug(__LINE__, "Getting Intel GPU devices"); debug(__LINE__, "Getting Intel GPU devices");
if (open my $fh, '-|', 'intel_gpu_top -L') { if (open my $fh, '-|', 'intel_gpu_top -L') {
while (<$fh>) { while (<$fh>) {