I have a Marlin 882SS that came with a 22" barrel. I had 5 3/4" cut from it by my ffl at the time, giving it a 16 1/4" tube. Then put a sling on it, and topped it with a 2-7 Leupold.
My 882SS is an absolute tack-driver. Having it cut down could make the rifle that much more fun. I would have a hard time doing it, though. With the bore thoroughly broken-in, I am getting 2,100+ fps out of that 22" barrel with ArmsCor 40 gr SPs (rated at 1,910 by the manufacturer - but they don't list test barrel length). And, I have been able to achieve over 2,400 fps with a few other loads.
I understand why some of the posters here jumped all over the "Check your local regs" opportunity.
But, as it has been pointed out by others - most of this country considers feral hogs to be nuisance animals. You can use any weapon you want. You could club them to death with a rotten log, in most areas - if you felt the need to do so.
I don't know how much of the south uses similar regulations, but many of the Florida and Alabama WMAs don't allow anything other than a .22 rimfire during Squirrel/Raccoon seasons. (Some Florida WMAs go so far, as to limit legal weapons to
only a single-shot pistol, with a certain barrel length, chambered for .22 Short only.) During that time - hogs are still fair game with those weapons.
Posting moral objections, or uninformed assumptions about performance doesn't change the fact that it is legal to use.
Colorado Game and Fish caught a man they trailed for 8 years, that killed 18 Elk with a 22 Hornet. Shot placement, shot placement.
...Still legal to hunt big game with in Utah.
Shot placement, shot placement, shot placement.
With magnumitis infecting most of the hunting population, it is only the old-timers and true marksman that end up using the "piddly little Hornet", and make damn good kills with it.