The Giants have designated lefty David Huff for assignment, reports Henry Schulman of the San Francisco Chronicle (via Twitter). The move was made to clear roster space for the return of Matt Cain from the DL.

Huff, 29, came to San Francisco from the Yankees after he lost his roster spot to Masahiro Tanaka. Through 20 innings this season, Huff has scuffled to a 6.30 ERA. He has posted 5.0 K/9 and 2.7 BB/9 on the year, both of which are worse than the marks he put up in each of the last two seasons.

The former first-round pick came up as a starter with the Indians, but shifted primarily to the bullpen last year. He has been solid against same-handed hitters thus far in 2014, allowing just a .659 OPS, but righties have hit a blistering .354/.415/.479 against him.